From dc20019a2466acc9a8af08ca0b5ca63528025b64 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 27 Apr 2011 22:06:01 +0000 Subject: [PATCH] Add Background and Header to Admin Bar Appearance Menu. fixes #17263 git-svn-id: http://svn.automattic.com/wordpress/trunk@17731 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/admin-bar.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index 28d28b7a3..4a00bfa60 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -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') ) ); } /**