Make WordPress Core

Ticket #19150: 19150.diff

File 19150.diff, 909 bytes (added by duck_, 14 years ago)
  • wp-includes/admin-bar.php

     
    578578        if ( ! current_user_can('switch_themes') && ! current_user_can( 'edit_theme_options' ) )
    579579                return;
    580580
     581        $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'themes', 'title' => __('Themes'), 'href' => admin_url('themes.php') ) );
     582
    581583        if ( ! current_user_can( 'edit_theme_options' ) )
    582584                return;
    583585
    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 
    587586        if ( current_theme_supports( 'widgets' )  )
    588587                $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'widgets', 'title' => __('Widgets'), 'href' => admin_url('widgets.php') ) );
    589588