Skip to content

Commit a61fa4e

Browse files
authored
Fix typos, language, comment alignment
1 parent d2d2f1c commit a61fa4e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,17 +411,17 @@ protected function normalize_css_font_family( string $font_family ): string {
411411
$font_family,
412412
array(
413413
/*
414-
* Normalize preprocessed whitespace.
415-
* https://www.w3.org/TR/css-syntax-3/#input-preprocessing
416-
*/
414+
* Normalize preprocessed whitespace.
415+
* https://www.w3.org/TR/css-syntax-3/#input-preprocessing
416+
*/
417417
"\r" => '\\A ',
418418
"\f" => '\\A ',
419419
"\r\n" => '\\A ',
420420

421421
/*
422-
* CSS unicode escaping for problematic characters.
423-
* https://www.w3.org/TR/css-syntax-3/#escaping
424-
*/
422+
* CSS Unicode escaping for problematic characters.
423+
* https://www.w3.org/TR/css-syntax-3/#escaping
424+
*/
425425
"\n" => '\\A ',
426426
'\\' => '\\5C ',
427427
',' => '\\2C ',

tests/phpunit/tests/fonts/font-face/wpFontFace/generateAndPrint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static function data_font_family_normalization() {
6464
}
6565

6666
/**
67-
* Ensure unexpected quoted font family names are normlized with a doing it wrong notice.
67+
* Ensure already-quoted font family names emit doing it wrong notice and skip normalization.
6868
*
6969
* @expectedIncorrectUsage WP_Font_Face::normalize_css_font_family
7070
*

0 commit comments

Comments
 (0)