Ticket #19150: 19150.diff
File 19150.diff, 909 bytes (added by , 14 years ago) |
---|
-
wp-includes/admin-bar.php
578 578 if ( ! current_user_can('switch_themes') && ! current_user_can( 'edit_theme_options' ) ) 579 579 return; 580 580 581 $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'themes', 'title' => __('Themes'), 'href' => admin_url('themes.php') ) ); 582 581 583 if ( ! current_user_can( 'edit_theme_options' ) ) 582 584 return; 583 585 584 if ( current_user_can( 'switch_themes' ) )585 $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'themes', 'title' => __('Themes'), 'href' => admin_url('themes.php') ) );586 587 586 if ( current_theme_supports( 'widgets' ) ) 588 587 $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'widgets', 'title' => __('Widgets'), 'href' => admin_url('widgets.php') ) ); 589 588