Changeset 41597 for trunk/src/wp-includes/theme.php
- Timestamp:
- 09/26/2017 07:37:02 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r41555 r41597 2788 2788 * the values should contain any characters needing slashes anyway. 2789 2789 */ 2790 $keys = array( 'changeset_uuid', 'customize_changeset_uuid', 'customize_theme', 'theme', 'customize_messenger_channel' );2790 $keys = array( 'changeset_uuid', 'customize_changeset_uuid', 'customize_theme', 'theme', 'customize_messenger_channel', 'customize_autosaved' ); 2791 2791 $input_vars = array_merge( 2792 2792 wp_array_slice_assoc( $_GET, $keys ), … … 2795 2795 2796 2796 $theme = null; 2797 $changeset_uuid = null;2797 $changeset_uuid = false; // Value false indicates UUID should be determined after_setup_theme to either re-use existing saved changeset or else generate a new UUID if none exists. 2798 2798 $messenger_channel = null; 2799 $autosaved = null; 2800 $branching = false; // Set initially fo false since defaults to true for back-compat; can be overridden via the customize_changeset_branching filter. 2799 2801 2800 2802 if ( $is_customize_admin_page && isset( $input_vars['changeset_uuid'] ) ) { … … 2810 2812 $theme = $input_vars['customize_theme']; 2811 2813 } 2814 2815 if ( ! empty( $input_vars['customize_autosaved'] ) ) { 2816 $autosaved = true; 2817 } 2818 2812 2819 if ( isset( $input_vars['customize_messenger_channel'] ) ) { 2813 2820 $messenger_channel = sanitize_key( $input_vars['customize_messenger_channel'] ); … … 2831 2838 2832 2839 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php'; 2833 $GLOBALS['wp_customize'] = new WP_Customize_Manager( compact( 'changeset_uuid', 'theme', 'messenger_channel', 'settings_previewed' ) );2840 $GLOBALS['wp_customize'] = new WP_Customize_Manager( compact( 'changeset_uuid', 'theme', 'messenger_channel', 'settings_previewed', 'autosaved', 'branching' ) ); 2834 2841 } 2835 2842
Note: See TracChangeset
for help on using the changeset viewer.