[wp-trac] [WordPress Trac] #38553: Posts Controller handle_terms throws warning

WordPress Trac noreply at wordpress.org
Sat Oct 29 19:57:43 UTC 2016


#38553: Posts Controller handle_terms throws warning
--------------------------------------+------------------------------
 Reporter:  timmydcrawford            |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  REST API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------
Changes (by jnylen0):

 * keywords:   => has-patch has-unit-tests


Comment:

 `[1,2,3]` would work if sending a raw JSON body.  That's more an issue
 with our developer tools (hint: you can test our integration of the
 content endpoints at https://developer.wordpress.com/docs/api/console/
 right now!)

 Definitely +1 on this patch, this is a nice simple fix.

 Other things we should think about (in separate tickets):

 - How can we expose the schema information about what type(s) each
 argument accepts?  Currently it's not visible in the discovery response,
 the documentation, or the code (at least, not immediately obvious to me).
 - Are there other array inputs that should get similar treatment?  Let's
 be consistent about the way we handle these if possible.

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


More information about the wp-trac mailing list