Add context to Add New admin bar menu label -- we have many other Add New
git-svn-id: https://develop.svn.wordpress.org/trunk@16595 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5e2c697088
commit
672c3a90f9
|
@ -202,7 +202,7 @@ function wp_admin_bar_new_content_menu() {
|
||||||
if ( empty( $actions ) )
|
if ( empty( $actions ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$wp_admin_bar->add_menu( array( 'id' => 'new-content', 'title' => __( 'Add New' ), 'href' => '', ) );
|
$wp_admin_bar->add_menu( array( 'id' => 'new-content', 'title' => _x( 'Add New', 'admin bar menu group label' ), 'href' => '', ) );
|
||||||
|
|
||||||
foreach ( $actions as $link => $action ) {
|
foreach ( $actions as $link => $action ) {
|
||||||
$wp_admin_bar->add_menu( array( 'parent' => 'new-content', 'id' => $action[2], 'title' => $action[0], 'href' => admin_url($link) ) );
|
$wp_admin_bar->add_menu( array( 'parent' => 'new-content', 'id' => $action[2], 'title' => $action[0], 'href' => admin_url($link) ) );
|
||||||
|
|
Loading…
Reference in New Issue