[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:04:51 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-unit-tests has-patch | Focuses:
----------------------------------------+-----------------------
Changes (by rmccue):
* keywords: needs-patch needs-unit-tests => needs-unit-tests has-patch
Comment:
Attached patch that uses `get_theme_support` - we know it's going to be
truthy, as `has_theme_support` is checked in the loop above.
Unsure how best to unit test this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38610#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list