Make sure WP_Customize_Manager::theme() never returns null.
* Fixes issue in [31533] that caused unit test fatal error fixes #31445 git-svn-id: https://develop.svn.wordpress.org/trunk@31536 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
578a785440
commit
b734341433
|
@ -314,6 +314,9 @@ final class WP_Customize_Manager {
|
|||
* @return WP_Theme
|
||||
*/
|
||||
public function theme() {
|
||||
if ( ! $this->theme ) {
|
||||
$this->theme = wp_get_theme();
|
||||
}
|
||||
return $this->theme;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue