Remove new-secondary-object group from toolbar New content menu.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-12-01 04:32:33 +00:00
parent b1935deee4
commit 94f091afb9
1 changed files with 1 additions and 9 deletions

View File

@ -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',
),
) );
}
/**