From 427cd23c6718068e4d585a91f000846572d5ccb4 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 1 Dec 2011 04:32:33 +0000 Subject: [PATCH] Remove new-secondary-object group from toolbar New content menu. git-svn-id: https://develop.svn.wordpress.org/trunk@19523 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/admin-bar.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index 5ddf4ecbf4..138bacc88c 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -485,7 +485,7 @@ function wp_admin_bar_new_content_menu( $wp_admin_bar ) { } if ( current_user_can( 'create_users' ) || current_user_can( 'promote_users' ) ) - $actions[ 'user-new.php' ] = array( _x( 'User', 'add new from admin bar' ), 'new-user', 'new-secondary-object' ); + $actions[ 'user-new.php' ] = array( _x( 'User', 'add new from admin bar' ), 'new-user' ); if ( ! $actions ) return; @@ -634,14 +634,6 @@ function wp_admin_bar_add_secondary_groups( $wp_admin_bar ) { 'class' => 'ab-sub-secondary', ), ) ); - - $wp_admin_bar->add_group( array( - 'parent' => 'new-content', - 'id' => 'new-secondary-object', - 'meta' => array( - 'class' => 'ab-sub-secondary', - ), - ) ); } /**