[wp-trac] [WordPress Trac] #38610: Set `format` enum based on the post formats registered to the theme
WordPress Trac
noreply at wordpress.org
Wed Nov 2 03:00:34 UTC 2016
#38610: Set `format` enum based on the post formats registered to the theme
------------------------------------------+-----------------------
Reporter: danielbachhuber | Owner: rmccue
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.7
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+-----------------------
Changes (by rmccue):
* owner: => rmccue
* status: new => assigned
Comment:
We can use `get_theme_support( 'post-formats' )` here, which does an
`array_intersect` with `get_post_format_slugs` internally.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38610#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list