Skip to content

Commit c92472f

Browse files
committed
Remove text/css type from class-wp-font-face
1 parent 8a5b3ff commit c92472f

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/wp-includes/fonts/class-wp-font-face.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,21 +72,6 @@ class WP_Font_Face {
7272
*/
7373
private $style_tag_attrs = array();
7474

75-
/**
76-
* Creates and initializes an instance of WP_Font_Face.
77-
*
78-
* @since 6.4.0
79-
*/
80-
public function __construct() {
81-
if (
82-
function_exists( 'is_admin' ) && ! is_admin()
83-
&&
84-
function_exists( 'current_theme_supports' ) && ! current_theme_supports( 'html5', 'style' )
85-
) {
86-
$this->style_tag_attrs = array( 'type' => 'text/css' );
87-
}
88-
}
89-
9075
/**
9176
* Generates and prints the `@font-face` styles for the given fonts.
9277
*

0 commit comments

Comments
 (0)