[wp-trac] [WordPress Trac] #34659: Whitelist for validation functions which only accept one argument

WordPress Trac noreply at wordpress.org
Sun Dec 4 17:29:21 UTC 2016


#34659: Whitelist for validation functions which only accept one argument
-----------------------------+-----------------------------
 Reporter:  danielbachhuber  |       Owner:  rmccue
     Type:  enhancement      |      Status:  assigned
 Priority:  normal           |   Milestone:  Future Release
Component:  REST API         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:
-----------------------------+-----------------------------

Comment (by brianhogg):

 After discussing with @rachelbaker added a `validate_callback_single_arg`
 and `sanitize_callback_single_arg`.  When set to `true` will only pass the
 value and nothing else to the callback function.

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


More information about the wp-trac mailing list