[wp-trac] [WordPress Trac] #38916: REST API: Can't set existing post format if theme does not support it
WordPress Trac
noreply at wordpress.org
Mon Dec 5 14:45:09 UTC 2016
#38916: REST API: Can't set existing post format if theme does not support it
--------------------------+-----------------------
Reporter: iseulde | Owner: joehoyle
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7
Component: REST API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: | Focuses:
--------------------------+-----------------------
Comment (by Drivingralle):
I think the behavior to just allow the post formats of the current theme
is bad for a long term use of user data.
The current theme maybe doesn't support the format "aside" but the theme
used two month later does. [[BR]]
If a user publishes the same content using a client via REST API suddenly
gets different results. Because the newer posts suddenly have the format
"aside" and the older once are "standard".
If we always allow to set the default post formats a client can write the
full set of information into the post. If a theme leverages the data or
not.[[BR]]
This way we make it pain-free to switch themes, something we should aim
for.
We also allow to post comments into the API even if the theme doesn't
show/support them.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38916#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list