WordPress.org

Ready to get started?Download WordPress

Forums

Gecka Submenu
3.8.1 Problems (2 posts)

  1. The Jake Group
    Member
    Posted 6 months ago #

    After upgrading to 3.8.1 the plugin stopped working on one of our sites. The problem for us was in Submenu.php on line 157. Here the plugin checks if the global post object is of type stdClass. Switching this to check if the type is WP_Post instead worked and solved our problems.

    if( is_a($post, 'stdClass') && (int)$post->ID ) {
    should become
    if( is_a($post, 'WP_Post') && (int)$post->ID ) {

    https://wordpress.org/plugins/gecka-submenu/

  2. goshenw
    Member
    Posted 6 months ago #

    Edit: I think the file is /models/Submenu.php

    Anyway, my install has:
    if( ( is_a($post, 'stdClass') || is_a($post, 'WP_Post') ) && (int)$post->ID ) {

    I think I'll post a new topic if I can't get it working...

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.