diff --git wp-admin/includes/schema.php wp-admin/includes/schema.php
index 8ddc139..bc3c57e 100644
|
|
|
function populate_options() { |
| 378 | 378 | $template = $theme->get_template(); |
| 379 | 379 | } |
| 380 | 380 | |
| | 381 | // If it's multisite and WP_DEFAULT_THEME is not redifined in WP Config, get the network default theme |
| | 382 | if ( is_multisite() && WP_DEFAULT_THEME === WP_Theme::get_core_default_theme()->get_stylesheet() ) { |
| | 383 | $default_theme = get_site_option( 'default_theme', WP_Theme::get_core_default_theme()->get_stylesheet() ); |
| | 384 | if ( ! empty( $default_theme ) ) { |
| | 385 | $theme = wp_get_theme( $default_theme ); |
| | 386 | if ( $theme->exists() ) { |
| | 387 | $stylesheet = $theme->get_stylesheet(); |
| | 388 | $template = $theme->get_template(); |
| | 389 | } |
| | 390 | } |
| | 391 | } |
| | 392 | |
| 381 | 393 | $timezone_string = ''; |
| 382 | 394 | $gmt_offset = 0; |
| 383 | 395 | /* translators: default GMT offset or timezone string. Must be either a valid offset (-12 to 14) |
diff --git wp-admin/network/settings.php wp-admin/network/settings.php
index 07f2a26..c1a0fc2 100644
|
|
|
if ( $_POST ) { |
| 59 | 59 | 'first_post', 'first_page', 'first_comment', 'first_comment_url', 'first_comment_author', |
| 60 | 60 | 'welcome_email', 'welcome_user_email', 'fileupload_maxk', 'global_terms_enabled', |
| 61 | 61 | 'illegal_names', 'limited_email_domains', 'banned_email_domains', 'WPLANG', 'admin_email', |
| 62 | | 'first_comment_email', |
| | 62 | 'first_comment_email', 'default_theme' |
| 63 | 63 | ); |
| 64 | 64 | |
| 65 | 65 | // Handle translation install. |
| … |
… |
if ( isset( $_GET['updated'] ) ) { |
| 204 | 204 | <table class="form-table"> |
| 205 | 205 | |
| 206 | 206 | <tr> |
| | 207 | <th scope="row"><label for="default_theme"><?php _e( 'Default Theme' ) ?></label></th> |
| | 208 | <td> |
| | 209 | <?php |
| | 210 | $themes = wp_get_themes( array( 'errors' => false, 'allowed' => 'network' ) ); |
| | 211 | if ( ! empty( $themes ) && is_array( $themes ) ) { |
| | 212 | echo "<select name='default_theme' id='default_theme'>\n"; |
| | 213 | $default_theme = get_site_option( 'default_theme', WP_Theme::get_core_default_theme()->get_stylesheet() ); |
| | 214 | foreach ( $themes as $theme ) { |
| | 215 | printf( "\t<option value='%s' %s>%s</option>\n", |
| | 216 | $theme->stylesheet, |
| | 217 | selected( $theme->stylesheet, $default_theme, false ), |
| | 218 | $theme |
| | 219 | ); |
| | 220 | } |
| | 221 | echo "</select>\n"; |
| | 222 | } |
| | 223 | ?> |
| | 224 | </td> |
| | 225 | </tr> |
| | 226 | <tr> |
| 207 | 227 | <th scope="row"><label for="welcome_email"><?php _e( 'Welcome Email' ) ?></label></th> |
| 208 | 228 | <td> |
| 209 | 229 | <textarea name="welcome_email" id="welcome_email" aria-describedby="welcome-email-desc" rows="5" cols="45" class="large-text"> |