diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index fda9f2f4c..1de06949e 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -264,6 +264,7 @@ final class WP_Customize_Manager { wp_enqueue_script( 'customize-preview' ); add_action( 'wp_head', array( $this, 'customize_preview_base' ) ); add_action( 'wp_footer', array( $this, 'customize_preview_settings' ), 20 ); + add_action( 'shutdown', array( $this, 'customize_preview_signature' ), 1000 ); foreach ( $this->settings as $setting ) { $setting->preview(); @@ -302,6 +303,15 @@ final class WP_Customize_Manager { ') ) + return; + + // Strip the signature from the request. + response = response.slice( 0, index ) + response.slice( index + signature.length ); + self.loader().one( 'load', self.loaded ); iframe.document.open();