[wp-trac] [WordPress Trac] #40473: Allow array of sanitize_callback parameters in register_rest_route()
WordPress Trac
noreply at wordpress.org
Wed Apr 19 14:14:00 UTC 2017
#40473: Allow array of sanitize_callback parameters in register_rest_route()
-------------------------+----------------------
Reporter: GunGeekATX | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: REST API | Version: 4.4
Severity: normal | Resolution: wontfix
Keywords: | Focuses:
-------------------------+----------------------
Changes (by jnylen0):
* keywords: close =>
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
I agree with Ryan here; I think this is uncommon enough that you should
just write the function yourself. Then, if certain cases end up being
common, they should have their own functions to handle them, and these
functions should be documented and tested. After that, we are back to a
single `sanitize_callback`.
Our sanitize and validate infrastructure is already pretty magical and
complicated, let's not make it more so.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40473#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list