mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Refine early bailing checks in customize.php. see #20852.
git-svn-id: https://develop.svn.wordpress.org/trunk@20858 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
18c7acb94b
commit
694228f319
@ -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 )
|
||||
|
||||
Loading…
Reference in New Issue
Block a user