Kill blog specific menus from admin-bar in net admin. Fixes #15754

git-svn-id: http://svn.automattic.com/wordpress/trunk@16842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
PeteMall 2010-12-09 16:55:09 +00:00
parent 3df76a04e3
commit c22bf34978
1 changed files with 9 additions and 6 deletions

View File

@ -178,13 +178,16 @@ class WP_Admin_Bar {
add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 20 );
add_action( 'admin_bar_menu', 'wp_admin_bar_my_sites_menu', 30 );
add_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu', 40 );
add_action( 'admin_bar_menu', 'wp_admin_bar_new_content_menu', 50 );
add_action( 'admin_bar_menu', 'wp_admin_bar_comments_menu', 60 );
add_action( 'admin_bar_menu', 'wp_admin_bar_appearance_menu', 70 );
add_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu', 80 );
add_action( 'admin_bar_menu', 'wp_admin_bar_shortlink_menu', 90 );
do_action('add_admin_bar_menus');
add_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu', 80 );
if ( !is_network_admin() && !is_user_admin() ) {
add_action( 'admin_bar_menu', 'wp_admin_bar_new_content_menu', 50 );
add_action( 'admin_bar_menu', 'wp_admin_bar_comments_menu', 60 );
add_action( 'admin_bar_menu', 'wp_admin_bar_appearance_menu', 70 );
}
do_action( 'add_admin_bar_menus' );
}
function remove_node( $id, &$menu ) {