Changeset 59259
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/fonts/class-wp-font-face.php
r58075 r59259 230 230 $attributes = $this->generate_style_element_attributes(); 231 231 232 return "<style id='wp-fonts-local'{$attributes}>\n%s\n</style>\n";232 return "<style class='wp-fonts-local'{$attributes}>\n%s\n</style>\n"; 233 233 } 234 234 -
trunk/tests/phpunit/tests/fonts/font-face/wpFontFace/generateAndPrint.php
r56500 r59259 32 32 public function test_should_generate_and_print_given_fonts( array $fonts, $expected ) { 33 33 $font_face = new WP_Font_Face(); 34 $style_element = "<style id='wp-fonts-local' type='text/css'>\n%s\n</style>\n";34 $style_element = "<style class='wp-fonts-local' type='text/css'>\n%s\n</style>\n"; 35 35 $expected_output = sprintf( $style_element, $expected ); 36 36 -
trunk/tests/phpunit/tests/fonts/font-face/wpPrintFontFaces.php
r56540 r59259 56 56 57 57 $expected_output = <<<CSS 58 <style id='wp-fonts-local' type='text/css'>58 <style class='wp-fonts-local' type='text/css'> 59 59 @font-face{font-family:"Source Serif Pro";font-style:normal;font-weight:200 900;font-display:fallback;src:url('http://example.com/assets/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2') format('woff2');font-stretch:;} 60 60 </style> … … 77 77 78 78 private function get_expected_styles_output( $styles ) { 79 $style_element = "<style id='wp-fonts-local' type='text/css'>\n%s\n</style>\n";79 $style_element = "<style class='wp-fonts-local' type='text/css'>\n%s\n</style>\n"; 80 80 return sprintf( $style_element, $styles ); 81 81 }
Note: See TracChangeset
for help on using the changeset viewer.