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:
parent
b1935deee4
commit
94f091afb9
|
@ -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',
|
||||
),
|
||||
) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue