Customize: Ensure valid themes in the preview.
Merge of [41397] to the 4.7 branch. git-svn-id: https://develop.svn.wordpress.org/branches/4.7@41430 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b7b7358c90
commit
55f0d1aeb1
|
@ -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'];
|
||||
|
||||
|
|
Loading…
Reference in New Issue