From 8abaa3bad45294f2d70a93f5bf02b640d6ef3343 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Fri, 12 Feb 2010 22:45:35 +0000 Subject: [PATCH] add WP_FALLBACK_THEME to allowed_themes in populate_network, See #11644 git-svn-id: https://develop.svn.wordpress.org/trunk@13070 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/schema.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index acca63a5f5..72704b99c1 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -642,10 +642,11 @@ function populate_network( $network_id = 1, $domain = '', $email = '', $site_nam // set up site tables $template = get_option( 'template' ); $stylesheet = get_option( 'stylesheet' ); + $allowed_themes = array( $stylesheet => true ); if ( $template != $stylesheet ) - $allowed_themes = array( $template => true, $stylesheet => true ); - else - $allowed_themes = array( $stylesheet => true ); + $allowed_themes[ $template ] = true; + if ( WP_FALLBACK_THEME != $stylesheet && WP_FALLBACK_THEME != $template ) + $allowed_themes[ WP_FALLBACK_THEME ] = true; if ( 1 == $network_id ) { $wpdb->insert( $wpdb->site, array( 'domain' => $domain, 'path' => $path ) );