[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 12:51:17 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 Drivingralle):

 > 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?

 An invalid thumbnail ID would lead to broken data and needs to be
 prevented. No theme or plugin can work with a wrong/broken post_thumbnail.

 But 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.

 If a theme adds a custom post_format the API should validate the value
 correct. And after a theme switch the format is gone because it's part of
 the theme. The default formats are still inside WP.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39232#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list