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

WordPress Trac noreply at wordpress.org
Sun Oct 25 03:48:49 UTC 2020


#34659: Whitelist for validation functions which only accept one argument
-------------------------------------+-------------------------
 Reporter:  danielbachhuber          |       Owner:  rmccue
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:
Component:  REST API                 |     Version:  4.7
 Severity:  normal                   |  Resolution:  worksforme
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-------------------------
Changes (by TimothyBlynJacobs):

 * status:  assigned => closed
 * resolution:   => worksforme
 * milestone:  Future Release =>


Comment:

 Now that our minimum PHP version is 5.6, it seems like this is far better
 served by using an anonymous function. I don't think it's worth
 introducing the complexity to `WP_REST_Request` anymore.

 If someone feels strongly about this and wants to own it, feel free to
 reopen.

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


More information about the wp-trac mailing list