Make WordPress Core


Ignore:
Timestamp:
06/07/2012 01:29:57 AM (12 years ago)
Author:
ryan
Message:

Namespace the customize request arg to prevent collision with plugins and themes. Props nacin. fixes #20862

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r21014 r21016  
    15791579 * Includes and instantiates the WP_Customize_Manager class.
    15801580 *
    1581  * Fires when ?customize=on.
     1581 * Fires when ?wp_customize=on or on wp-admin/customize.php.
    15821582 *
    15831583 * @since 3.4.0
    15841584 */
    15851585function _wp_customize_include() {
    1586     // Load on themes.php or ?customize=on
    1587     if ( ! ( ( isset( $_REQUEST['customize'] ) && 'on' == $_REQUEST['customize'] ) || 'customize.php' == basename( $_SERVER['PHP_SELF'] ) ) )
     1586    if ( ! ( ( isset( $_REQUEST['wp_customize'] ) && 'on' == $_REQUEST['wp_customize'] )
     1587        || ( is_admin() && 'customize.php' == basename( $_SERVER['PHP_SELF'] ) )
     1588    ) )
    15881589        return;
    15891590
Note: See TracChangeset for help on using the changeset viewer.