[wp-trac] [WordPress Trac] #38586: REST API: Allow arrays to be sent as CSVs

WordPress Trac noreply at wordpress.org
Mon Oct 31 15:41:01 UTC 2016


#38586: REST API: Allow arrays to be sent as CSVs
----------------------------+-----------------------
 Reporter:  pento           |       Owner:  pento
     Type:  task (blessed)  |      Status:  reopened
 Priority:  normal          |   Milestone:  4.7
Component:  REST API        |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  needs-docs      |     Focuses:
----------------------------+-----------------------

Comment (by joehoyle):

 Hmm I'm not too keen on this approach, and I think this was committed
 without too much consideration to different types etc. It appears this
 would also need a modification to the sanitizer also, as right now, it
 doesn't look like this is doing both validation and sanitization.

 Just because the value isn't an array doesn't mean we can pass it to
 `preg_split`, what if it's other types?

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


More information about the wp-trac mailing list