mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
add WP_FALLBACK_THEME to allowed_themes in populate_network, See #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@13070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2d78f9d6bc
commit
a392f8a441
@ -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 ) );
|
||||
|
Loading…
Reference in New Issue
Block a user