Skip to content

Instantly share code, notes, and snippets.

@ocean90
Created Dec 1, 2011
Embed
What would you like to do?
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