From 47a29d2c260943bb0731853b9ee60c3966952355 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 30 Mar 2012 16:35:51 +0000 Subject: [PATCH] Ensure we get a theme back from wp_get_theme() before checking ->errors(). see #20103. git-svn-id: https://develop.svn.wordpress.org/trunk@20331 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index bba0871d63..1e58251bdb 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 = '';