[wp-trac] [WordPress Trac] #39232: REST API: Can't set existing post format if theme does not support it (2)
WordPress Trac
noreply at wordpress.org
Mon Feb 27 20:02:45 UTC 2017
#39232: REST API: Can't set existing post format if theme does not support it (2)
--------------------------------------------------+----------------------
Reporter: iseulde | Owner: jnylen0
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7.3
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests fixed-major | Focuses:
--------------------------------------------------+----------------------
Changes (by ocean90):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"40137"]:
{{{
#!CommitTicketReference repository="" revision="40137"
REST API: Allow setting post formats even if they are not supported by the
theme.
A `post_format` not used by the current theme, but supported by core is
not a wrong/broken piece of information. It's just not used at this point
in time. Therefore we should allow setting and retrieving any of the
standard post formats supported in core, even if the current theme doesn't
use them.
After this commit, a post's `format` value can survive a round trip
through the API, which is a good general design principle for an API.
Merge of [40120] and [40121] to the 4.7 branch.
Props JPry, iseulde, davidakennedy, Drivingralle.
Fixes #39232.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39232#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list