[wp-trac] [WordPress Trac] #46907: Pass current request object to rest_authentication_errors filter

WordPress Trac noreply at wordpress.org
Thu Aug 1 20:16:44 UTC 2019


#46907: Pass current request object to rest_authentication_errors filter
-------------------------+-----------------------
 Reporter:  ocean90      |       Owner:  ocean90
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  5.3
Component:  REST API     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  rest-api
-------------------------+-----------------------

Comment (by ocean90):

 For an example see https://github.com/WP-API/jwt-
 auth/blob/855cfab06c2a7bbd61ed48e6ad20a341545ea8b5/wp-includes/rest-
 api/auth/class-wp-rest-token.php#L206-L254, particularly
 https://github.com/WP-API/jwt-auth/blob/develop/wp-includes/rest-api/auth
 /class-wp-rest-token.php#L360-L407.

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


More information about the wp-trac mailing list