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
This commit is contained in:
parent
6fff51eebe
commit
f7ae4d41f6
|
@ -576,6 +576,8 @@ function wp_admin_bar_appearance_menu( $wp_admin_bar ) {
|
||||||
if ( ! current_user_can( 'edit_theme_options' ) )
|
if ( ! current_user_can( 'edit_theme_options' ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
$wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'customize', 'title' => __('Customize'), 'href' => wp_customize_url(get_stylesheet()) ) );
|
||||||
|
|
||||||
if ( current_theme_supports( 'widgets' ) )
|
if ( current_theme_supports( 'widgets' ) )
|
||||||
$wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'widgets', 'title' => __('Widgets'), 'href' => admin_url('widgets.php') ) );
|
$wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'widgets', 'title' => __('Widgets'), 'href' => admin_url('widgets.php') ) );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue