[wp-trac] [WordPress Trac] #38610: Set `format` enum based on the post formats registered to the theme
WordPress Trac
noreply at wordpress.org
Tue Nov 1 19:25:29 UTC 2016
#38610: Set `format` enum based on the post formats registered to the theme
-----------------------------+------------------------------------------
Reporter: danielbachhuber | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7
Component: REST API | Version:
Severity: normal | Keywords: needs-patch needs-unit-tests
Focuses: |
-----------------------------+------------------------------------------
In the Post schema, we're registering the `enum` based on
`get_post_format_slugs()`, which returns all slugs, not those specific to
the theme.
Instead, we should make sure the `enum` is specific to the post formats
supported by the theme.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38610>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list