Changeset 20852 for trunk/wp-includes/theme.php
- Timestamp:
- 05/23/2012 05:56:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r20802 r20852 1567 1567 1568 1568 /** 1569 * Includes and instantiates the WP_Customize class.1569 * Includes and instantiates the WP_Customize_Manager class. 1570 1570 * 1571 1571 * Fires when ?customize=on. … … 1575 1575 function _wp_customize_include() { 1576 1576 // Load on themes.php or ?customize=on 1577 if ( ! ( isset( $_REQUEST['customize'] ) && 'on' == $_REQUEST['customize']) )1577 if ( ! ( ( isset( $_REQUEST['customize'] ) && 'on' == $_REQUEST['customize'] ) || 'customize.php' == basename( $_SERVER['PHP_SELF'] ) ) ) 1578 1578 return; 1579 1579 1580 require( ABSPATH . WPINC . '/class-wp-customize .php' );1580 require( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); 1581 1581 // Init Customize class 1582 $GLOBALS['wp_customize'] = new WP_Customize ;1582 $GLOBALS['wp_customize'] = new WP_Customize_Manager; 1583 1583 } 1584 1584 add_action( 'plugins_loaded', '_wp_customize_include' ); … … 1605 1605 */ 1606 1606 function wp_customize_url( $stylesheet ) { 1607 return esc_url( admin_url( ' admin.php' ) . '?customize=on&theme=' . $stylesheet );1608 } 1607 return esc_url( admin_url( 'customize.php' ) . '?theme=' . $stylesheet ); 1608 }
Note: See TracChangeset
for help on using the changeset viewer.