Skip to:
Content
Pages
Categories
Search
Top
Bottom

do_action('load-edit.php') … calling bbpress and then an error

  • i am using another plugin (codepress admin columns) that calls do_action(‘load-edit.php’) to load all the plugins to get some info – namely custom columns. since and update to both – which, ironically both updated today – i get this error:

    Fatal error: Call to undefined method stdClass::add_help_tab() in /home/content/…/wp-content/plugins/bbpress/includes/admin/forums.php on line 118

    And if I get past that error, it’s the same thing for admin/topics.php and admin/replies.php.

    What I have traced it to is this:

    private function bail() {
    if ( !isset( get_current_screen()->post_type ) || ( $this->post_type != get_current_screen()->post_type ) )
    return true;

    return false;
    }

    For some reason bail() is not bailing. I – the user – am on options-general.php?page=codepress-admin-columns, and yet bail() thinks the current screen’s post type is ‘forum’ (or topic or reply).

    I’m thinking this is a naming convention problem? Why else would get_current_screen return as a ‘forum’ post_type when I’m no where near the forum – I’m just loading it to read some data.

    Thanks for any info.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar