Changeset 61418 for trunk/src/wp-includes/script-loader.php
- Timestamp:
- 12/30/2025 01:01:11 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/script-loader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r61416 r61418 2414 2414 2415 2415 if ( ! empty( $wp_styles->print_code ) ) { 2416 echo "<style>\n"; 2417 echo $wp_styles->print_code; 2418 echo sprintf( "\n/*# sourceURL=%s */", rawurlencode( $concat_source_url ) ); 2419 echo "\n</style>\n"; 2416 $processor = new WP_HTML_Tag_Processor( '<style></style>' ); 2417 $processor->next_tag(); 2418 $style_tag_contents = "\n{$wp_styles->print_code}\n" 2419 . sprintf( "/*# sourceURL=%s */\n", rawurlencode( $concat_source_url ) ); 2420 $processor->set_modifiable_text( $style_tag_contents ); 2421 echo "{$processor->get_updated_html()}\n"; 2420 2422 } 2421 2423 } … … 3172 3174 $action_hook_name, 3173 3175 static function () use ( $style ) { 3174 echo "<style>$style</style>\n"; 3176 $processor = new WP_HTML_Tag_Processor( '<style></style>' ); 3177 $processor->next_tag(); 3178 $processor->set_modifiable_text( $style ); 3179 echo "{$processor->get_updated_html()}\n"; 3175 3180 }, 3176 3181 $priority
Note: See TracChangeset
for help on using the changeset viewer.