[wp-trac] [WordPress Trac] #49037: Expose all theme supports in /themes endpoint
WordPress Trac
noreply at wordpress.org
Thu Jan 30 16:03:14 UTC 2020
#49037: Expose all theme supports in /themes endpoint
----------------------------------------+-----------------------
Reporter: adamboro | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.4
Component: REST API | Version: 5.0
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses: rest-api
----------------------------------------+-----------------------
Comment (by TimothyBlynJacobs):
The types here aren't entirely correct. For instance, `custom-logo` is
listed as `[ 'array', 'bool']` but it looks like it should be `['object',
'bool']`. Unless you are supposed to have multiple custom logos? I think
this is the same for `custom-header` as well.
Response on Twenty Twenty.
{{{
[
{
"theme_supports": {
"align-wide": true,
"automatic-feed-links": true,
"custom-header": false,
"custom-logo": {
"width": 120,
"height": 90,
"flex-width": true,
"flex-height": true,
"header-text": [
""
]
},
"customize-selective-refresh-widgets": true,
"dark-editor-style": false,
"disable-custom-colors": false,
"disable-custom-font-sizes": false,
"editor-color-palette": [
{
"name": "Accent Color",
"slug": "accent",
"color": "#a73050"
},
{
"name": "Primary",
"slug": "primary",
"color": "#000000"
},
{
"name": "Secondary",
"slug": "secondary",
"color": "#7e704b"
},
{
"name": "Subtle Background",
"slug": "subtle-background",
"color": "#d7cfab"
},
{
"name": "Background Color",
"slug": "background",
"color": "#fff"
}
],
"editor-font-sizes": [
{
"name": "Small",
"shortName": "S",
"size": 18,
"slug": "small"
},
{
"name": "Regular",
"shortName": "M",
"size": 21,
"slug": "normal"
},
{
"name": "Large",
"shortName": "L",
"size": 26.25,
"slug": "large"
},
{
"name": "Larger",
"shortName": "XL",
"size": 32,
"slug": "larger"
}
],
"editor-styles": false,
"formats": [
"standard"
],
"html5": [
"search-form",
"comment-form",
"comment-list",
"gallery",
"caption",
"script",
"style"
],
"post-thumbnails": true,
"responsive-embeds": false,
"title-tag": true,
"wp-block-styles": false
}
}
]
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49037#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list