Skip to content

Instantly share code, notes, and snippets.

@ocean90
Created December 1, 2011 10:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ocean90/1415633 to your computer and use it in GitHub Desktop.
Save ocean90/1415633 to your computer and use it in GitHub Desktop.
Fix Debug Bar item in WordPress 3.3
<?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