mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 06:07:23 +01:00
Customize: Ensure valid themes in the preview.
Merge of [41397] to the 4.5 branch. Built from https://develop.svn.wordpress.org/branches/4.5@41432 git-svn-id: http://core.svn.wordpress.org/branches/4.5@41265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b38f64fe94
commit
cda7d5bac0
@ -410,7 +410,7 @@ final class WP_Customize_Manager {
|
||||
|
||||
$this->original_stylesheet = get_stylesheet();
|
||||
|
||||
$this->theme = wp_get_theme( isset( $_REQUEST['theme'] ) ? $_REQUEST['theme'] : null );
|
||||
$this->theme = wp_get_theme( isset( $_REQUEST['theme'] ) && 0 === validate_file( $_REQUEST['theme'] ) ? $_REQUEST['theme'] : null );
|
||||
|
||||
if ( $this->is_theme_active() ) {
|
||||
// Once the theme is loaded, we'll validate it.
|
||||
|
Loading…
Reference in New Issue
Block a user