Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font Library: remove font family and font face preview keys from theme.json schema #58395

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading