diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index bba0871d6..1e58251bd 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -344,7 +344,7 @@ function populate_options() { $template = WP_DEFAULT_THEME; // If default theme is a child theme, we need to get its template $theme = wp_get_theme( $template ); - if ( ! $theme->errors() ) + if ( $theme && ! $theme->errors() ) $template = $theme->get_template(); $timezone_string = '';