[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
Tue Dec 13 10:29:59 UTC 2016
#39232: REST API: Can't set existing post format if theme does not support it (2)
--------------------------+------------------------------
Reporter: iseulde | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by iseulde):
Replying to [comment:9:ticket:38916 joehoyle]:
> I think the distinction here is site wide conditional (say for the
theme) or conditional based off a specific post.
As far as I understand, this is the main argument against the change,
right? That it would be introducing conditional logic that is specific to
the post? The API isn't consistent with this either though. From what I
saw in the post controller, there is password logic that depends on the
sticky value.
Replying to [comment:5:ticket:38916 iseulde]:
> Shouldn't you be able to POST the data you got back to the server
without errors?
On second thought, this would have much bigger consequences. When you have
an invalid thumbnail ID, what should happen? Or are we then
differentiating between values that depend on the theme rather than the
database?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39232#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list