Changeset 20419 for trunk/wp-includes/theme.php
- Timestamp:
- 04/10/2012 02:25:03 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/theme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r20375 r20419 1564 1564 } 1565 1565 1566 function wp_customize_load() { 1566 /** 1567 * Includes and instantiates the WP_Customize class. 1568 * 1569 * Fires when ?customize=on. 1570 * 1571 * @since 3.4.0 1572 */ 1573 function _wp_customize_include() { 1567 1574 // Load on themes.php or ?customize=on 1568 if ( ! ( isset( $_REQUEST['customize'] ) && 'on' == $_REQUEST['customize'] ) && 'themes.php' != $GLOBALS['pagenow'])1575 if ( ! ( isset( $_REQUEST['customize'] ) && 'on' == $_REQUEST['customize'] ) ) 1569 1576 return; 1570 1577 … … 1574 1581 $GLOBALS['customize'] = new WP_Customize; 1575 1582 } 1576 add_action( 'plugins_loaded', 'wp_customize_load' ); 1583 add_action( 'plugins_loaded', '_wp_customize_include' ); 1584 1585 /** 1586 * Includes the loading scripts for the theme customizer and 1587 * adds the action to print the customize container template. 1588 * 1589 * @since 3.4.0 1590 */ 1591 function wp_customize_loader() { 1592 wp_enqueue_script( 'customize-loader' ); 1593 add_action( 'admin_footer', '_wp_customize_loader_template' ); 1594 } 1595 1596 /** 1597 * Print the customize container template. 1598 * 1599 * @since 3.4.0 1600 */ 1601 function _wp_customize_loader_template() { 1602 ?> 1603 <div id="customize-container" class="wp-full-overlay"> 1604 <input type="hidden" class="admin-url" value="<?php echo esc_url( admin_url( 'admin.php' ) ); ?>" /> 1605 <a href="#" class="close-full-overlay"><?php printf( __( '← Return to %s' ), get_admin_page_title() ); ?></a> 1606 <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>"> 1607 <span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span> 1608 <span class="collapse-sidebar-arrow"></span> 1609 </a> 1610 </div> 1611 <?php 1612 }
Note: See TracChangeset
for help on using the changeset viewer.