From 98e69ae1114f752f06ee40bb03fd1ffd9420037f Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Fri, 26 Dec 2025 16:10:50 +0100 Subject: [PATCH 1/6] Remove type="text/css" attribute on style tags --- src/wp-includes/theme.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 89d56d4e44bce..f71103af7d6d4 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -1893,11 +1893,9 @@ function _custom_background_cb() { $color = false; } - $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"'; - if ( ! $background && ! $color ) { if ( is_customize_preview() ) { - printf( '', $type_attr ); + echo ''; } return; } @@ -1951,7 +1949,7 @@ function _custom_background_cb() { $style .= $image . $position . $size . $repeat . $attachment; } ?> - id="custom-background-css"> + - id="wp-custom-css"> +