Ticket #20575: 20575.diff
| File 20575.diff, 806 bytes (added by , 14 years ago) |
|---|
-
wp-includes/admin-bar.php
573 573 if ( current_user_can( 'switch_themes' ) || current_user_can( 'edit_theme_options' ) ) 574 574 $wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'themes', 'title' => __('Themes'), 'href' => admin_url('themes.php') ) ); 575 575 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 576 579 if ( ! current_user_can( 'edit_theme_options' ) ) 577 580 return; 578 581