Make WordPress Core


Ignore:
Timestamp:
11/08/2010 07:40:05 PM (16 years ago)
Author:
ryan
Message:

Use bool for allowed themes. Props PeteMall. see #14897

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-ms-themes-list-table.php

    r16205 r16241  
    5959
    6060        foreach ( (array) $themes['all'] as $key => $theme ) {
    61             if ( array_key_exists( $theme['Template'], $allowed_themes ) ) {
     61            $theme_key = esc_html( $theme['Stylesheet'] );
     62            if ( isset( $allowed_themes [ $theme_key ] ) )  {
    6263                $themes['all'][$key]['enabled'] = true;
    6364                $themes['enabled'][$key] = $themes['all'][$key];
Note: See TracChangeset for help on using the changeset viewer.