From ac95404db8a38f896abd0f43e3239f1f7d2a5992 Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Tue, 5 Jun 2012 12:26:57 +0000 Subject: [PATCH] Theme Customizer: Add an inline html5 shiv to the preview to ensure html5 elements render properly. props SergeyBiryukov, fixes #20755. git-svn-id: https://develop.svn.wordpress.org/trunk@20995 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-wp-customize-manager.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index 059d559a81..a3bd2b8c49 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -263,6 +263,7 @@ final class WP_Customize_Manager { wp_enqueue_script( 'customize-preview' ); add_action( 'wp_head', array( $this, 'customize_preview_base' ) ); + add_action( 'wp_head', array( $this, 'customize_preview_html5' ) ); add_action( 'wp_footer', array( $this, 'customize_preview_settings' ), 20 ); add_action( 'shutdown', array( $this, 'customize_preview_signature' ), 1000 ); add_filter( 'wp_die_handler', array( $this, 'remove_preview_signature' ) ); @@ -283,6 +284,24 @@ final class WP_Customize_Manager { ?> +