[wp-trac] [WordPress Trac] #34659: Whitelist for validation functions which only accept one argument
WordPress Trac
noreply at wordpress.org
Tue Nov 17 14:39:43 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 danielbachhuber):
Replying to [comment:3 TimothyBlynJacobs]:
> I'd imagine something like this. Though you're right that'd get clunky
as well. Especially for a object function name pair.
>
> {{{#!php
> $arg['validate_callback'] = array( 'myfunction', 1 );
> }}}
Yeah, that's pretty clunky. I can't say that I'm a fan.
@rmccue could I get your thoughts on the patch provided? I'm happy to
update it to handle the sanitization callback as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34659#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list