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": {