[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:42:06 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:  Awaiting Review
Component:  REST API      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The schema for the post format depends on the theme. If the theme does not
 support e.g. "standard", and an existing post has that format, then trying
 to update that post with "standard" as the format won't work. You get the
 error `Invalid parameter(s): format`.

 In addition, the documentation says standard, aside, chat, gallery, link,
 image, quote, status, video, audio are all allowed, while it actually
 depends on the theme.

 http://v2.wp-api.org/reference/posts/

 Related: https://github.com/WP-API/WP-API/issues/1448

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


More information about the wp-trac mailing list