Created
December 1, 2011 10:25
-
-
Save ocean90/1415633 to your computer and use it in GitHub Desktop.
Fix Debug Bar item in WordPress 3.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// See http://wordpress.org/extend/plugins/debug-bar/ | |
remove_action( 'admin_bar_menu', array( 'Debug_Bar', 'admin_bar_menu' ), 1000 ); | |
add_action( 'admin_bar_menu', 'ds_fix_debug_bar_menu', 5 ); | |
function ds_fix_debug_bar_menu( $wp_admin_bar ) { | |
$wp_admin_bar->add_menu( array( | |
'parent' => 'top-secondary', | |
'id' => 'debug-bar', | |
'title' => 'Debug' | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment