Make WordPress Core

Changeset 13070


Ignore:
Timestamp:
02/12/2010 10:45:35 PM (15 years ago)
Author:
wpmuguru
Message:

add WP_FALLBACK_THEME to allowed_themes in populate_network, See #11644

File:
1 edited

Legend:

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

    r13012 r13070  
    643643    $template = get_option( 'template' );
    644644    $stylesheet = get_option( 'stylesheet' );
     645    $allowed_themes = array( $stylesheet => true );
    645646    if ( $template != $stylesheet )
    646         $allowed_themes = array( $template => true, $stylesheet => true );
    647     else
    648         $allowed_themes = array( $stylesheet => true );
     647        $allowed_themes[ $template ] = true;
     648    if ( WP_FALLBACK_THEME != $stylesheet && WP_FALLBACK_THEME != $template )
     649        $allowed_themes[ WP_FALLBACK_THEME ] = true;
    649650
    650651    if ( 1 == $network_id ) {
Note: See TracChangeset for help on using the changeset viewer.