Skip to content

Commit

Permalink
Revert the addition of the preview key to the font family shape in th…
Browse files Browse the repository at this point in the history
…eme.json schema. (#58395)
  • Loading branch information
matiasbenedetto authored Jan 29, 2024
1 parent 84b09ce commit 516fab0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Settings related to typography.
| textTransform | boolean | true | |
| dropCap | boolean | true | |
| fontSizes | array | | fluid, name, size, slug |
| fontFamilies | array | | fontFace, fontFamily, name, preview, slug |
| fontFamilies | array | | fontFace, fontFamily, name, slug |

---

Expand Down
2 changes: 0 additions & 2 deletions lib/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,6 @@ class WP_Theme_JSON_Gutenberg {
'fontFamily' => null,
'name' => null,
'slug' => null,
'preview' => null,
'fontFace' => array(
array(
'ascentOverride' => null,
Expand All @@ -451,7 +450,6 @@ class WP_Theme_JSON_Gutenberg {
'sizeAdjust' => null,
'src' => null,
'unicodeRange' => null,
'preview' => null,
),
),
),
Expand Down
8 changes: 0 additions & 8 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,6 @@
"description": "CSS font-family value.",
"type": "string"
},
"preview": {
"description": "URL to a preview image of the font family.",
"type": "string"
},
"fontFace": {
"description": "Array of font-face declarations.",
"type": "array",
Expand Down Expand Up @@ -737,10 +733,6 @@
"unicodeRange": {
"description": "CSS unicode-range value.",
"type": "string"
},
"preview": {
"description": "URL to a preview image of the font face.",
"type": "string"
}
},
"required": [ "fontFamily", "src" ],
Expand Down

0 comments on commit 516fab0

Please sign in to comment.