Refine early bailing checks in customize.php. see #20852.

git-svn-id: http://core.svn.wordpress.org/trunk@20858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-05-23 21:00:02 +00:00
parent 5ed25d4725
commit 397fc6f8c9
1 changed files with 1 additions and 4 deletions

View File

@ -9,13 +9,10 @@
require_once( './admin.php' );
if ( ! current_user_can( 'edit_theme_options' ) )
die( 'Cap check failed' );
wp_die( __( 'Cheatin’ uh?' ) );
global $wp_scripts, $wp_customize;
if ( ! $wp_customize->is_preview() )
die( 'is_preview() failed' );
wp_reset_vars( array( 'theme' ) );
if ( ! $theme )