diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 56986c3d80a79..60d94a3a0648f 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -2205,12 +2205,11 @@ function _print_scripts() { $zip = 'gzip'; } - $concat = trim( $wp_scripts->concat, ', ' ); - $type_attr = current_theme_supports( 'html5', 'script' ) ? '' : " type='text/javascript'"; + $concat = trim( $wp_scripts->concat, ', ' ); if ( $concat ) { if ( ! empty( $wp_scripts->print_code ) ) { - echo "\n\n"; + echo "\n\n"; + echo "\n"; } if ( ! empty( $wp_scripts->print_html ) ) { @@ -2398,8 +2397,7 @@ function _print_styles() { $zip = 'gzip'; } - $concat = trim( $wp_styles->concat, ', ' ); - $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"'; + $concat = trim( $wp_styles->concat, ', ' ); if ( $concat ) { $dir = $wp_styles->text_direction; @@ -2414,10 +2412,10 @@ function _print_styles() { } $href = $wp_styles->base_url . "/wp-admin/load-styles.php?c={$zip}&dir={$dir}" . $concatenated . '&ver=' . $ver; - echo "\n"; + echo "\n"; if ( ! empty( $wp_styles->print_code ) ) { - echo "\n"; + echo "\n"; @@ -2905,13 +2903,6 @@ function wp_sanitize_script_attributes( $attributes ) { * @return string String containing `