[wp-trac] [WordPress Trac] #49037: Expose all theme supports in /themes endpoint
WordPress Trac
noreply at wordpress.org
Thu Jan 30 22:42:07 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: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+-----------------------
Changes (by spacedmonkey):
* keywords: needs-patch good-first-bug => has-patch has-unit-tests
Comment:
Good catch @TimothyBlynJacobs . I have updated the patch.
{{{#!json
[
{
"theme_supports": {
"align-wide": false,
"automatic-feed-links": true,
"custom-header": {
"default-image": "",
"random-default": false,
"width": 1200,
"height": 280,
"flex-height": true,
"flex-width": false,
"default-text-color": "1a1a1a",
"header-text": true,
"uploads": true,
"wp-head-callback": "twentysixteen_header_style",
"admin-head-callback": "",
"admin-preview-callback": "",
"video": false,
"video-active-callback": "is_front_page"
},
"custom-logo": {
"width": 240,
"height": 240,
"flex-width": false,
"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": "Dark Gray",
"slug": "dark-gray",
"color": "#1a1a1a"
},
{
"name": "Medium Gray",
"slug": "medium-gray",
"color": "#686868"
},
{
"name": "Light Gray",
"slug": "light-gray",
"color": "#e5e5e5"
},
{
"name": "White",
"slug": "white",
"color": "#fff"
},
{
"name": "Blue Gray",
"slug": "blue-gray",
"color": "#4d545c"
},
{
"name": "Bright Blue",
"slug": "bright-blue",
"color": "#007acc"
},
{
"name": "Light Blue",
"slug": "light-blue",
"color": "#9adffd"
},
{
"name": "Dark Brown",
"slug": "dark-brown",
"color": "#402b30"
},
{
"name": "Medium Brown",
"slug": "medium-brown",
"color": "#774e24"
},
{
"name": "Dark Red",
"slug": "dark-red",
"color": "#640c1f"
},
{
"name": "Bright Red",
"slug": "bright-red",
"color": "#ff675f"
},
{
"name": "Yellow",
"slug": "yellow",
"color": "#ffef8e"
}
],
"editor-font-sizes": false,
"editor-styles": true,
"formats": [
"standard",
"aside",
"image",
"video",
"quote",
"link",
"gallery",
"status",
"audio",
"chat"
],
"html5": [
"search-form",
"comment-form",
"comment-list",
"gallery",
"caption",
"script",
"style"
],
"post-thumbnails": true,
"responsive-embeds": true,
"title-tag": true,
"wp-block-styles": true
}
}
]
}}}
This is the output of sixteen. Take not of custom-header, which is an
object now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49037#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list