From f7ae4d41f6ac6ac3d03d36754b6ea74417f1d605 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 1 May 2012 12:47:46 +0000 Subject: [PATCH] Add a link to the Customizer from the Admin Bar appearance menu. Props sabreuse. fixes #20575 git-svn-id: http://svn.automattic.com/wordpress/trunk@20666 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/admin-bar.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index 800f533da0..8e90085d00 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -576,6 +576,8 @@ function wp_admin_bar_appearance_menu( $wp_admin_bar ) { if ( ! current_user_can( 'edit_theme_options' ) ) return; + $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'customize', 'title' => __('Customize'), 'href' => wp_customize_url(get_stylesheet()) ) ); + if ( current_theme_supports( 'widgets' ) ) $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'widgets', 'title' => __('Widgets'), 'href' => admin_url('widgets.php') ) );