Changeset 19153
- Timestamp:
- 11/04/2011 02:47:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/admin-bar.php
r19150 r19153 575 575 */ 576 576 function wp_admin_bar_appearance_menu( $wp_admin_bar ) { 577 // You can have edit_theme_options but not switch_themes. 578 if ( ! current_user_can('switch_themes') && ! current_user_can( 'edit_theme_options' ) ) 579 return; 577 if ( current_user_can( 'switch_themes' ) || current_user_can( 'edit_theme_options' ) ) 578 $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'themes', 'title' => __('Themes'), 'href' => admin_url('themes.php') ) ); 580 579 581 580 if ( ! current_user_can( 'edit_theme_options' ) ) 582 581 return; 583 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 582 587 583 if ( current_theme_supports( 'widgets' ) )
Note: See TracChangeset
for help on using the changeset viewer.