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
This commit is contained in:
Ryan Boren 2011-12-01 04:32:33 +00:00
parent 6073a8dce1
commit 427cd23c67
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',
),
) );
}
/**