Changeset 56540
- Timestamp:
- 09/07/2023 05:28:59 PM (19 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/fonts.php
r56500 r56540 40 40 */ 41 41 function wp_print_font_faces( $fonts = array() ) { 42 static $wp_font_face = null;43 42 44 43 if ( empty( $fonts ) ) { … … 50 49 } 51 50 52 if ( null === $wp_font_face ) { 53 $wp_font_face = new WP_Font_Face(); 54 } 55 51 $wp_font_face = new WP_Font_Face(); 56 52 $wp_font_face->generate_and_print( $fonts ); 57 53 } -
trunk/tests/phpunit/tests/fonts/font-face/wpPrintFontFaces.php
r56500 r56540 7 7 * 8 8 * @since 6.4.0 9 */ 10 require_once __DIR__ . '/base.php'; 11 12 /** 9 * 13 10 * @group fonts 14 11 * @group fontface 15 12 * 16 13 * @covers wp_print_font_faces 17 *18 * @runTestsInSeparateProcesses19 * @preserveGlobalState disabled20 14 */ 21 15 class Tests_Fonts_WpPrintFontFaces extends WP_Font_Face_UnitTestCase {
Note: See TracChangeset
for help on using the changeset viewer.