From ab36967f7c556c87a7aa86d5d67f348a0faefd31 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Thu, 20 Oct 2022 08:25:29 +0900 Subject: [PATCH] Global Styles: Fix ascent/descent-override property typo (#45125) --- lib/experimental/class-wp-webfonts.php | 4 ++-- schemas/json/theme.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/experimental/class-wp-webfonts.php b/lib/experimental/class-wp-webfonts.php index 02083d50cabc1..e40aca9e8671f 100644 --- a/lib/experimental/class-wp-webfonts.php +++ b/lib/experimental/class-wp-webfonts.php @@ -249,8 +249,8 @@ public function validate_webfont( $webfont ) { } $valid_props = array( - 'ascend-override', - 'descend-override', + 'ascent-override', + 'descent-override', 'font-display', 'font-family', 'font-stretch', diff --git a/schemas/json/theme.json b/schemas/json/theme.json index 807f44a0fa103..8f300a0858509 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -486,12 +486,12 @@ "description": "CSS font-stretch value.", "type": "string" }, - "ascendOverride": { - "description": "CSS ascend-override value.", + "ascentOverride": { + "description": "CSS ascent-override value.", "type": "string" }, - "descendOverride": { - "description": "CSS descend-override value.", + "descentOverride": { + "description": "CSS descent-override value.", "type": "string" }, "fontVariant": {