From c259dff63ca4483d43303f82f6cd8a13f4da7f98 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 19 Sep 2017 11:51:06 +0000 Subject: [PATCH] Customize: Ensure valid themes in the preview. Merge of [41397] to the 4.7 branch. Built from https://develop.svn.wordpress.org/branches/4.7@41430 git-svn-id: http://core.svn.wordpress.org/branches/4.7@41263 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-manager.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index befe945d14..fa2d4e823a 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -265,7 +265,7 @@ final class WP_Customize_Manager { } $this->original_stylesheet = get_stylesheet(); - $this->theme = wp_get_theme( $args['theme'] ); + $this->theme = wp_get_theme( 0 === validate_file( $args['theme'] ) ? $args['theme'] : null ); $this->messenger_channel = $args['messenger_channel']; $this->_changeset_uuid = $args['changeset_uuid']; diff --git a/wp-includes/version.php b/wp-includes/version.php index a78a35e0b3..46aa507fb6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7.6-alpha-41418'; +$wp_version = '4.7.6-alpha-41430'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.