WordPress.org

Ready to get started?Download WordPress

Forums

WP3.0 and the admin menu - new bug? (2 posts)

  1. Cyber Sprocket Labs
    Member
    Posted 4 years ago #

    We have several plugins (MoneyPress : CafePress Edition, eBay Edition, and Commission Junction Edition) that are all migrating to use the same base classes with different data drivers.

    The problem is that because we are using classes v. "flat" code we now use array($this,'funcname') to setup the add_options_page() that adds our plugin settings hook to the admin panel sidebar menu.

    This works 100% fine in 2.9.2.

    In 3.0 the sidebar admin panel only shows ONE of the settings pages if we happen to install more than 1 plugin that uses the same base class.

    Yes, we have checked to ensure the classes are instantiated correctly. It appears to be a bug deep inside 3.0 either on the add_action('admin_menu', array($this,'create_option_page')) call or in the add_options_page(blah,blah,blah,array($this, 'render_options_page')) call.

    We're getting ready to submit to Trac now that we've ruled out our own code bugs. Like I said, a clean 2.9.2 install with our plugins works perfectly. Same setup with a clean 3.0 install does not.

    Anyone else having this problem?

  2. Raju Gautam
    Member
    Posted 4 years ago #

    I am also having some problem:

    add_action('activate_'.$this->tmh_pi_path, array(&$this, 'tmhpiActivate'));
    add_action('edit_form_advanced', array(&$this, 'tmhpiCustomFields'));
    add_action('edit_page_form', array(&$this, 'tmhpiCustomFields'));
    add_action('edit_post', array(&$this, 'tmhpiMetaboxHandle'));

    It was working perfecting fine before with 2.9 but when I upgrade it to 3.0 then suddenly it does not show a form field in below the post form in admin.

Topic Closed

This topic has been closed to new replies.

About this Topic