Customize: Ensure valid themes in the preview.

Merge of [41397] to the 4.8 branch.

Built from https://develop.svn.wordpress.org/branches/4.8@41429


git-svn-id: http://core.svn.wordpress.org/branches/4.8@41262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2017-09-19 11:50:31 +00:00
parent 07e1f9a6ca
commit 460edb5519
2 changed files with 2 additions and 2 deletions

View File

@ -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'];

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8.2-alpha-41417';
$wp_version = '4.8.2-alpha-41429';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.