Kill blog specific menus from admin-bar in net admin. Fixes #15754
git-svn-id: https://develop.svn.wordpress.org/trunk@16842 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c120fd98ee
commit
df562b62f4
@ -178,11 +178,14 @@ 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_shortlink_menu', 90 );
|
||||
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 );
|
||||
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' );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user