Ticket #20862: 20862.diff
| File 20862.diff, 2.3 KB (added by nacin, 12 months ago) |
|---|
-
wp-includes/js/customize-loader.dev.js
54 54 hashchange: function( e ) { 55 55 var hash = window.location.toString().split('#')[1]; 56 56 57 if ( hash && 0 === hash.indexOf( ' customize=on' ) )57 if ( hash && 0 === hash.indexOf( 'wp_customize=on' ) ) 58 58 Loader.open( Loader.settings.url + '?' + hash ); 59 59 60 60 if ( ! hash && ! $.support.history ) … … 104 104 if ( $.support.history && window.location.href !== src ) 105 105 history.pushState( { customize: src }, '', src ); 106 106 else if ( ! $.support.history && $.support.hashchange && hash ) 107 window.location.hash = ' customize=on&' + hash;107 window.location.hash = 'wp_customize=on&' + hash; 108 108 109 109 this.trigger( 'open' ); 110 110 }, -
wp-includes/theme.php
1578 1578 /** 1579 1579 * Includes and instantiates the WP_Customize_Manager class. 1580 1580 * 1581 * Fires when ? customize=on.1581 * Fires when ?wp_customize=on or on wp-admin/customize.php. 1582 1582 * 1583 1583 * @since 3.4.0 1584 1584 */ 1585 1585 function _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 ) ) 1588 1589 return; 1589 1590 1590 1591 require( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); -
wp-admin/js/customize-controls.dev.js
586 586 }, { 587 587 query: function() { 588 588 return { 589 customize:'on',590 theme: api.settings.theme.stylesheet,591 customized: JSON.stringify( api.get() )589 wp_customize: 'on', 590 theme: api.settings.theme.stylesheet, 591 customized: JSON.stringify( api.get() ) 592 592 }; 593 593 }, 594 594
