Changeset 61418 for trunk/src/wp-includes/class-wp-styles.php
- Timestamp:
- 12/30/2025 01:01:11 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-styles.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-styles.php
r61411 r61418 159 159 160 160 if ( $inline_style ) { 161 $ inline_style_tag = sprintf(162 "<style id='%s-inline-css'>\n%s\n</style>\n",163 esc_attr( $handle ),164 $inline_style165 );161 $processor = new WP_HTML_Tag_Processor( '<style></style>' ); 162 $processor->next_tag(); 163 $processor->set_attribute( 'id', "{$handle}-inline-css" ); 164 $processor->set_modifiable_text( "\n{$inline_style}\n" ); 165 $inline_style_tag = "{$processor->get_updated_html()}\n"; 166 166 } else { 167 167 $inline_style_tag = ''; … … 337 337 } 338 338 339 printf(340 "<style id='%s-inline-css'>\n%s\n</style>\n",341 esc_attr( $handle ),342 $output343 );339 $processor = new WP_HTML_Tag_Processor( '<style></style>' ); 340 $processor->next_tag(); 341 $processor->set_attribute( 'id', "{$handle}-inline-css" ); 342 $processor->set_modifiable_text( "\n{$output}\n" ); 343 echo "{$processor->get_updated_html()}\n"; 344 344 345 345 return true;
Note: See TracChangeset
for help on using the changeset viewer.