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:
parent
efdcdfdf36
commit
47a29d2c26
@ -344,7 +344,7 @@ function populate_options() {
|
|||||||
$template = WP_DEFAULT_THEME;
|
$template = WP_DEFAULT_THEME;
|
||||||
// If default theme is a child theme, we need to get its template
|
// If default theme is a child theme, we need to get its template
|
||||||
$theme = wp_get_theme( $template );
|
$theme = wp_get_theme( $template );
|
||||||
if ( ! $theme->errors() )
|
if ( $theme && ! $theme->errors() )
|
||||||
$template = $theme->get_template();
|
$template = $theme->get_template();
|
||||||
|
|
||||||
$timezone_string = '';
|
$timezone_string = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user