From 397fc6f8c93c4749ebed7dd601b4765d24e81d78 Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 23 May 2012 21:00:02 +0000 Subject: [PATCH] Refine early bailing checks in customize.php. see #20852. git-svn-id: http://core.svn.wordpress.org/trunk@20858 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/customize.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wp-admin/customize.php b/wp-admin/customize.php index dcc3f9600..a081573b2 100644 --- a/wp-admin/customize.php +++ b/wp-admin/customize.php @@ -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 )