WordPress.org

Make WordPress Core

Ticket #20575: 20575.diff

File 20575.diff, 806 bytes (added by sabreuse, 6 years ago)
  • wp-includes/admin-bar.php

     
    573573        if ( current_user_can( 'switch_themes' ) || current_user_can( 'edit_theme_options' ) )
    574574                $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'themes', 'title' => __('Themes'), 'href' => admin_url('themes.php') ) );
    575575
     576        if ( current_user_can( 'switch_themes' ) || current_user_can( 'edit_theme_options' ) )
     577                $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'customize', 'title' => __('Customize'), 'href' => admin_url('admin.php?customize=on&theme=' . wp_get_theme()->get_stylesheet()) ) );
     578
    576579        if ( ! current_user_can( 'edit_theme_options' ) )
    577580                return;
    578581