diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index 76a143d261..8a254eecdb 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 44edfb67c6..2319482c1f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31535'; +$wp_version = '4.2-alpha-31536'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.