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:
Mark Jaquith 2015-02-25 03:53:04 +00:00
parent 578a785440
commit b734341433
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}