WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Debug Bar] Not showing up in Admin Bar (4 posts)

  1. stuartt
    Member
    Posted 2 years ago #

    The admin bar shows up but not the debug bar. Previously the admin bar wouldn't show up and that turned out to be because the footer of this theme did not have wp_footer() defined in it. Once I got the admin bar working I reinstalled debug bar and activated it but nothing shows up. No "Debug" button or link or menu item... just the normal Admin Bar. Am I missing something else (and yes, the plugin is enabled)?

    I am using version 3.2.1 of WordPress, PHP version is 5.2.6.
    I see no PHP errors in my log files.
    I do not have WP_DEBUG enabled nor do I have SAVE_QUERIES enabled.

  2. Brad Williams
    Member
    Posted 2 years ago #

    Same problem for me. Works fine in 3.3+, but doesn't seem to work in earlier versions of WP

  3. mogmismo
    Member
    Posted 2 years ago #

    I can also confirm this, works on 3.3x, but not 3.2.1.

  4. Adam Backstrom
    Member
    Posted 2 years ago #

    debug-bar.php is calling $wp_admin_bar->add_menu() and specifying a parent menu top-secondary that does not exist before WordPress 3.3. Change this:

    $wp_admin_bar->add_menu( array(
    	'id'     => 'debug-bar',
    	'parent' => 'top-secondary',
    	'title'  => apply_filters( 'debug_bar_title', __('Debug', 'debug-bar') ),
    	'meta'   => array( 'class' => $classes ),
    ) );

    To this:

    $wp_admin_bar->add_menu( array(
    	'id'     => 'debug-bar',
    	'title'  => apply_filters( 'debug_bar_title', __('Debug', 'debug-bar') ),
    	'meta'   => array( 'class' => $classes ),
    ) );

Topic Closed

This topic has been closed to new replies.

About this Topic