Skip to content

Commit

Permalink
Enable new slug key in schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Jun 13, 2024
1 parent a602aae commit c0cca63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ class WP_Theme_JSON_Gutenberg {
'styles',
'templateParts',
'title',
'slug',
'version',
);

Expand Down
4 changes: 4 additions & 0 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -2696,6 +2696,10 @@
"type": "string",
"description": "Title of the global styles variation. If not defined, the file name will be used."
},
"slug": {
"type": "string",
"description": "Slug of the global styles variation. If not defined, the kebab-case title will be used."
},
"description": {
"type": "string",
"description": "Description of the global styles variation."
Expand Down

0 comments on commit c0cca63

Please sign in to comment.