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

WordPress Trac noreply at wordpress.org
Sat Oct 29 01:07:32 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:                  |     Focuses:
----------------------------+------------------------------

Comment (by timmydcrawford):

 Thanks @ChopinBach - here is an updated diff with a test case.  Your
 suggested solution does work well with a comma-separated string, though it
 doesn't handle something like


 {{{
 categories=[1,2,3]
 }}}

 Either way, I think this second diff is better than the first since it
 does work with comma-sep values.

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


More information about the wp-trac mailing list