From 52dea56cbe58f7014041735c391b23f5563879bc Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@20666 602fd350-edb4-49c9-b593-d223f7449a82 --- 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') ) );