[wp-trac] [WordPress Trac] #34659: Whitelist for validation functions which only accept one argument
WordPress Trac
noreply at wordpress.org
Wed Nov 11 14:49:35 UTC 2015
#34659: Whitelist for validation functions which only accept one argument
-----------------------------+------------------
Reporter: danielbachhuber | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+------------------
Comment (by TimothyBlynJacobs):
The idea of whitelisting functions seems quite a bit kludgy. Most of my
sanitization functions, for example, also only accept one parameter. And
whitelisting all of those doesn't seem ideal. Plus, what about functions
that only need access to the first two?
Why not specify the number of arguments to be passed to the sanitization
function the same way we do for hooks?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34659#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list