Message info
 
To:wp-svn@lists.automattic.com From:m@wordpress.org Subject:[wp-svn] [21019] trunk/wp-includes/class-wp-customize-manager.php: Call auth_redirect() for customize.php. Date:Thu, 7 Jun 2012 15:25:45 +0000 (UTC)
 

Revision
21019
Author
nacin
Date
2012-06-07 15:25:45 +0000 (Thu, 07 Jun 2012)

Log Message

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

Modified Paths

Diff

Modified: trunk/wp-includes/class-wp-customize-manager.php (21018 => 21019)


--- trunk/wp-includes/class-wp-customize-manager.php	2012-06-07 01:52:53 UTC (rev 21018)
+++ trunk/wp-includes/class-wp-customize-manager.php	2012-06-07 15:25:45 UTC (rev 21019)
@@ -78,6 +78,9 @@
 	 * @since 3.4.0
 	 */
 	public function setup_theme() {
+		if ( is_admin() && ! defined( 'DOING_AJAX' ) )
+			auth_redirect();
+
 		send_origin_headers();
 
 		$this->original_stylesheet = get_stylesheet();