WordPress.org

Make WordPress Core

Changeset 20858


Ignore:
Timestamp:
05/23/2012 09:00:02 PM (8 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/customize.php

    r20852 r20858  
    1010require_once( './admin.php' );
    1111if ( ! current_user_can( 'edit_theme_options' ) )
    12     die( 'Cap check failed' );
     12    wp_die( __( 'Cheatin’ uh?' ) );
    1313
    1414global $wp_scripts, $wp_customize;
    15 
    16 if ( ! $wp_customize->is_preview() )
    17     die( 'is_preview() failed' );
    1815
    1916wp_reset_vars( array( 'theme' ) );
Note: See TracChangeset for help on using the changeset viewer.