[wp-trac] [WordPress Trac] #34659: Whitelist for validation functions which only accept one argument
WordPress Trac
noreply at wordpress.org
Wed Nov 18 20:46:09 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 has-unit-tests | Focuses:
--------------------------------------+------------------
Comment (by joehoyle):
This looks good to me - I think in the case that we decided to change to :
> Only ever passing one argument to the validation / sanitization
callback. But, the extra context can be helpful, as we're using in the
plugin itself.
At some point, the user-land code would still be compatible, so I think
the whitelist is the best way to go.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34659#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list