mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Don't show Add New and Comments admin bar menus in network or user admins. Add tooltip to comments menu. Props ocean90. fixes #19327
git-svn-id: https://develop.svn.wordpress.org/trunk@19398 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -259,8 +259,10 @@ class WP_Admin_Bar {
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu', 40 );
|
||||
|
||||
// Content related.
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_comments_menu', 60 );
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_new_content_menu', 70 );
|
||||
if ( ! is_network_admin() && ! is_user_admin() ) {
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_comments_menu', 60 );
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_new_content_menu', 70 );
|
||||
}
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu', 80 );
|
||||
add_action( 'admin_bar_menu', 'wp_admin_bar_shortlink_menu', 90 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user