mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
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
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user