WordPress.org

Make WordPress Core

Ticket #20575: 20575.2.diff

File 20575.2.diff, 633 bytes (added by sabreuse, 3 years ago)
  • wp-includes/admin-bar.php

     
    576576        if ( ! current_user_can( 'edit_theme_options' ) ) 
    577577                return; 
    578578 
     579        $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'customize', 'title' => __('Customize'), 'href' => wp_customize_url(get_stylesheet()) ) ); 
     580 
    579581        if ( current_theme_supports( 'widgets' )  ) 
    580582                $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'widgets', 'title' => __('Widgets'), 'href' => admin_url('widgets.php') ) ); 
    581583