Skip to content

Commit 6edc02c

Browse files
committed
Remove text/css type from Core LINK tags
1 parent c92472f commit 6edc02c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/wp-admin/includes/ajax-actions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3946,7 +3946,7 @@ function wp_ajax_parse_media_shortcode() {
39463946
$styles = wpview_media_sandbox_styles();
39473947

39483948
foreach ( $styles as $style ) {
3949-
$head .= '<link type="text/css" rel="stylesheet" href="' . $style . '">';
3949+
$head .= '<link rel="stylesheet" href="' . $style . '">';
39503950
}
39513951

39523952
if ( ! empty( $wp_scripts ) ) {

src/wp-includes/general-template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5061,7 +5061,7 @@ function wp_admin_css( $file = 'wp-admin', $force_echo = false ) {
50615061
}
50625062

50635063
$stylesheet_link = sprintf(
5064-
"<link rel='stylesheet' href='%s' type='text/css' />\n",
5064+
"<link rel='stylesheet' href='%s' />\n",
50655065
esc_url( wp_admin_css_uri( $file ) )
50665066
);
50675067

@@ -5080,7 +5080,7 @@ function wp_admin_css( $file = 'wp-admin', $force_echo = false ) {
50805080

50815081
if ( function_exists( 'is_rtl' ) && is_rtl() ) {
50825082
$rtl_stylesheet_link = sprintf(
5083-
"<link rel='stylesheet' href='%s' type='text/css' />\n",
5083+
"<link rel='stylesheet' href='%s' />\n",
50845084
esc_url( wp_admin_css_uri( "$file-rtl" ) )
50855085
);
50865086

0 commit comments

Comments
 (0)