mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Add Background and Header to Admin Bar Appearance Menu. fixes #17263
git-svn-id: https://develop.svn.wordpress.org/trunk@17731 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -231,6 +231,12 @@ function wp_admin_bar_appearance_menu( $wp_admin_bar ) {
|
||||
|
||||
if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) )
|
||||
$wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'menus', 'title' => __('Menus'), 'href' => admin_url('nav-menus.php') ) );
|
||||
|
||||
if ( current_theme_supports( 'custom-background' ) )
|
||||
$wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'background', 'title' => __('Background'), 'href' => admin_url('themes.php?page=custom-background') ) );
|
||||
|
||||
if ( current_theme_supports( 'custom-header-uploads' ) )
|
||||
$wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'header', 'title' => __('Header'), 'href' => admin_url('themes.php?page=custom-header') ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user