diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php index 2cda5a2990..00a782b3ef 100644 --- a/wp-includes/class.wp-scripts.php +++ b/wp-includes/class.wp-scripts.php @@ -142,7 +142,7 @@ class WP_Scripts extends WP_Dependencies { $this->init(); add_action( 'init', array( $this, 'init' ), 0 ); - if ( ! current_theme_supports( 'html5', 'script' ) ) { + if ( ! is_admin() && ! current_theme_supports( 'html5', 'script' ) ) { $this->type_attr = " type='text/javascript'"; } } diff --git a/wp-includes/class.wp-styles.php b/wp-includes/class.wp-styles.php index ebb9a596f0..3673b9e319 100644 --- a/wp-includes/class.wp-styles.php +++ b/wp-includes/class.wp-styles.php @@ -126,7 +126,7 @@ class WP_Styles extends WP_Dependencies { */ do_action_ref_array( 'wp_default_styles', array( &$this ) ); - if ( ! current_theme_supports( 'html5', 'style' ) ) { + if ( ! is_admin() && ! current_theme_supports( 'html5', 'style' ) ) { $this->type_attr = " type='text/css'"; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 429c99de0b..f93871c0a4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-46169'; +$wp_version = '5.3-alpha-46170'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.