diff --git a/wp-admin/ms-edit.php b/wp-admin/ms-edit.php index 09f9d4bd4..14b23445c 100644 --- a/wp-admin/ms-edit.php +++ b/wp-admin/ms-edit.php @@ -442,6 +442,7 @@ switch ( $_GET['action'] ) { if ( is_array( $_POST['theme'] ) ) { $themes = get_themes(); reset( $themes ); + $allowed_themes = array(); foreach ( (array) $themes as $key => $theme ) { if ( $_POST['theme'][ esc_html( $theme['Stylesheet'] ) ] == 'enabled' ) $allowed_themes[ esc_html( $theme['Stylesheet'] ) ] = true; diff --git a/wp-admin/ms-themes.php b/wp-admin/ms-themes.php index 7e69e9082..e6fd9b57b 100644 --- a/wp-admin/ms-themes.php +++ b/wp-admin/ms-themes.php @@ -70,7 +70,7 @@ $allowed_themes = get_site_allowed_themes(); $disabled = true; } ?> - +