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 )