Make WordPress Core

Changeset 19006


Ignore:
Timestamp:
10/19/2011 04:32:26 PM (13 years ago)
Author:
azaozz
Message:

Bring the Appearance sub-menus on the front end one level up, see #18197

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r18984 r19006  
    573573        return;
    574574
     575    /* take the subs one level up
    575576    $wp_admin_bar->add_menu( array(
    576577        'id'     => 'appearance',
     
    579580        'parent' => 'site-name',
    580581    ) );
     582    */
    581583
    582584    if ( ! current_user_can( 'edit_theme_options' ) )
     
    584586
    585587    if ( current_user_can( 'switch_themes' ) )
    586         $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'themes', 'title' => __('Themes'), 'href' => admin_url('themes.php') ) );
     588        $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'themes', 'title' => __('Themes'), 'href' => admin_url('themes.php') ) );
    587589
    588590    if ( current_theme_supports( 'widgets' )  )
    589         $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'widgets', 'title' => __('Widgets'), 'href' => admin_url('widgets.php') ) );
     591        $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'widgets', 'title' => __('Widgets'), 'href' => admin_url('widgets.php') ) );
    590592
    591593     if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) )
    592         $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'menus', 'title' => __('Menus'), 'href' => admin_url('nav-menus.php') ) );
     594        $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'menus', 'title' => __('Menus'), 'href' => admin_url('nav-menus.php') ) );
    593595
    594596    if ( current_theme_supports( 'custom-background' ) )
    595         $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'background', 'title' => __('Background'), 'href' => admin_url('themes.php?page=custom-background') ) );
     597        $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'background', 'title' => __('Background'), 'href' => admin_url('themes.php?page=custom-background') ) );
    596598
    597599    if ( current_theme_supports( 'custom-header' ) )
    598         $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'header', 'title' => __('Header'), 'href' => admin_url('themes.php?page=custom-header') ) );
     600        $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'header', 'title' => __('Header'), 'href' => admin_url('themes.php?page=custom-header') ) );
    599601}
    600602
Note: See TracChangeset for help on using the changeset viewer.