Changeset 61418 for trunk/src/wp-includes/fonts/class-wp-font-face.php
- Timestamp:
- 12/30/2025 01:01:11 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/fonts/class-wp-font-face.php
r61411 r61418 93 93 } 94 94 95 printf( $this->get_style_element(), $css ); 95 $processor = new WP_HTML_Tag_Processor( '<style class="wp-fonts-local"></style>' ); 96 $processor->next_tag(); 97 $processor->set_modifiable_text( "\n{$css}\n" ); 98 echo "{$processor->get_updated_html()}\n"; 96 99 } 97 100 … … 195 198 196 199 /** 197 * Gets the style element for wrapping the `@font-face` CSS.198 *199 * @since 6.4.0200 *201 * @return string The style element.202 */203 private function get_style_element() {204 return "<style class='wp-fonts-local'>\n%s\n</style>\n";205 }206 207 /**208 200 * Gets the `@font-face` CSS styles for locally-hosted font files. 209 201 *
Note: See TracChangeset
for help on using the changeset viewer.