[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
Wed Nov 23 14:51:22 UTC 2016


#38916: REST API: Can't set existing post format if theme does not support it
--------------------------+--------------------
 Reporter:  iseulde       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+--------------------
Changes (by jnylen0):

 * milestone:  Awaiting Review => 4.7


Comment:

 We don't yet have a strategy for documenting parameters that have a
 dynamic list of values like this:

 `'enum' => array_values( get_post_format_slugs() ),`

 We can ignore the update to the `format` field if the value is the same as
 what's currently saved.  Does that make sense as a way to address the
 issue?

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


More information about the wp-trac mailing list