Changeset 61440 for trunk/src/wp-includes/theme.php
- Timestamp:
- 01/05/2026 04:02:03 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/theme.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r61418 r61440 1894 1894 } 1895 1895 1896 $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';1897 1898 1896 if ( ! $background && ! $color ) { 1899 1897 if ( is_customize_preview() ) { 1900 printf( '<style%s id="custom-background-css"></style>', $type_attr );1898 echo '<style id="custom-background-css"></style>'; 1901 1899 } 1902 1900 return; … … 1952 1950 } 1953 1951 1954 $processor = new WP_HTML_Tag_Processor( "<style{$type_attr} id=\"custom-background-css\"></style>");1952 $processor = new WP_HTML_Tag_Processor( '<style id="custom-background-css"></style>' ); 1955 1953 $processor->next_tag(); 1956 1954 … … 1973 1971 $processor = new WP_HTML_Tag_Processor( '<style></style>' ); 1974 1972 $processor->next_tag(); 1975 if ( ! current_theme_supports( 'html5', 'style' ) ) {1976 $processor->set_attribute( 'type', 'text/css' );1977 }1978 1973 $processor->set_attribute( 'id', 'wp-custom-css' ); 1979 1974 $processor->set_modifiable_text( "\n{$styles}\n" ); … … 3007 3002 $classes = array_map( 'sanitize_html_class', $classes ); 3008 3003 $classes = '.' . implode( ', .', $classes ); 3009 3010 $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';3011 3004 ?> 3012 3005 <!-- Custom Logo: hide header text --> 3013 <style id="custom-logo-css" <?php echo $type_attr; ?>>3006 <style id="custom-logo-css"> 3014 3007 <?php echo $classes; ?> { 3015 3008 position: absolute;
Note: See TracChangeset
for help on using the changeset viewer.