mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Customize: Ensure valid themes in the preview.
git-svn-id: https://develop.svn.wordpress.org/trunk@41397 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -271,7 +271,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->settings_previewed = ! empty( $args['settings_previewed'] );
|
||||
$this->_changeset_uuid = $args['changeset_uuid'];
|
||||
|
||||
Reference in New Issue
Block a user