File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ private static function maybe_add_quotes( $item ) {
5959 * @see https://drafts.csswg.org/css-fonts/#family-name-syntax
6060 *
6161 * @param string $font_family CSS text @font-face font-family value.
62- * @return string Normalized value.
62+ * @return string|null Normalized value or null if the value could not be normalized .
6363 */
6464 public static function normalize_css_font_face_font_family ( string $ font_family ): ?string {
6565 $ processor = WP_CSS_Token_Processor::create ( $ font_family );
@@ -74,8 +74,7 @@ public static function normalize_css_font_face_font_family( string $font_family
7474
7575 $ token_type = $ processor ->get_token_type ();
7676 if ( WP_CSS_Token_Processor::TOKEN_STRING === $ token_type ) {
77- $ plaintext_font_family = $ processor ->get_token_value ();
78- return WP_CSS_Builder::string ( $ plaintext_font_family );
77+ return WP_CSS_Builder::string ( $ processor ->get_token_value () );
7978 }
8079
8180 /**
You can’t perform that action at this time.
0 commit comments