Admin bar tweaks. Props filosofo. see #15308
git-svn-id: https://develop.svn.wordpress.org/trunk@16302 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cb3030f582
commit
987bf4663f
|
@ -206,7 +206,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' => __( 'New Content' ), 'href' => '', ) );
|
$wp_admin_bar->add_menu( array( 'id' => 'new-content', 'title' => __( 'Add New' ), '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) ) );
|
||||||
|
|
|
@ -503,7 +503,7 @@ function wp_default_styles( &$styles ) {
|
||||||
$styles->add( 'nav-menu', "/wp-admin/css/nav-menu$suffix.css", array(), '20100907' );
|
$styles->add( 'nav-menu', "/wp-admin/css/nav-menu$suffix.css", array(), '20100907' );
|
||||||
|
|
||||||
// Admin bar
|
// Admin bar
|
||||||
$styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20101110' );
|
$styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20101111' );
|
||||||
|
|
||||||
foreach ( $rtl_styles as $rtl_style ) {
|
foreach ( $rtl_styles as $rtl_style ) {
|
||||||
$styles->add_data( $rtl_style, 'rtl', true );
|
$styles->add_data( $rtl_style, 'rtl', true );
|
||||||
|
|
Loading…
Reference in New Issue