[wp-trac] [WordPress Trac] #40473: Allow array of sanitize_callback parameters in register_rest_route()

WordPress Trac noreply at wordpress.org
Wed Apr 19 04:31:14 UTC 2017


#40473: Allow array of sanitize_callback parameters in register_rest_route()
-------------------------+------------------------------
 Reporter:  GunGeekATX   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  REST API     |     Version:  4.4
 Severity:  normal       |  Resolution:
 Keywords:  close        |     Focuses:
-------------------------+------------------------------
Changes (by rmccue):

 * keywords:   => close


Comment:

 Strong -1 on this. If you want to call multiple sanitising functions, make
 a function that calls them yourself. I don't see a need for this to be
 included in the general REST API infrastructure.

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


More information about the wp-trac mailing list