Call auth_redirect() for customize.php. props ocean90. fixes #20872.

git-svn-id: https://develop.svn.wordpress.org/trunk@21019 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-06-07 15:25:45 +00:00
parent 6fbd4a92f2
commit 39d7e1ccc9
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ final class WP_Customize_Manager {
* @since 3.4.0
*/
public function setup_theme() {
if ( is_admin() && ! defined( 'DOING_AJAX' ) )
auth_redirect();
send_origin_headers();
$this->original_stylesheet = get_stylesheet();