Make WordPress Core

Changeset 26469


Ignore:
Timestamp:
11/29/2013 08:37:17 AM (11 years ago)
Author:
dd32
Message:

Themes: When the user doesn't have switch_themes capabilities, and we've passed the current theme, detect the theme slug/stylesheet correctly so that the flags are set properly. See #25948

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/theme.php

    r26316 r26469  
    393393
    394394    WP_Theme::sort_by_name( $themes );
    395     foreach ( $themes as $slug => $theme ) {
     395    foreach ( $themes as $theme ) {
    396396        $parent = false;
    397397        if ( $theme->parent() ) {
     
    399399        }
    400400
     401        $slug = $theme->get_stylesheet();
    401402        $encoded_slug = urlencode( $slug );
    402403
Note: See TracChangeset for help on using the changeset viewer.