WordPress.org

Make WordPress Core

Changeset 17731


Ignore:
Timestamp:
04/27/2011 10:06:01 PM (10 years ago)
Author:
ryan
Message:

Add Background and Header to Admin Bar Appearance Menu. fixes #17263

File:
1 edited

Legend:

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

    r17658 r17731  
    232232     if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) )
    233233        $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'menus', 'title' => __('Menus'), 'href' => admin_url('nav-menus.php') ) );
     234
     235    if ( current_theme_supports( 'custom-background' ) )
     236        $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'background', 'title' => __('Background'), 'href' => admin_url('themes.php?page=custom-background') ) );
     237
     238    if ( current_theme_supports( 'custom-header-uploads' ) )
     239        $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'header', 'title' => __('Header'), 'href' => admin_url('themes.php?page=custom-header') ) );
    234240}
    235241
Note: See TracChangeset for help on using the changeset viewer.