[wp-trac] [WordPress Trac] #26706: Allow custom authentication handlers for all requests

WordPress Trac noreply at wordpress.org
Sat Mar 8 12:51:23 UTC 2014


#26706: Allow custom authentication handlers for all requests
------------------------------+------------------
 Reporter:  rmccue            |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  3.9
Component:  Users             |     Version:
 Severity:  minor             |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------
Changes (by DrewAPicture):

 * keywords:  has-patch commit needs-docs => has-patch commit


Comment:

 Looking at [attachment:26706.2.diff], seems like if 0 is passed to
 `wp_set_current_user()` that it will eventually return false itself.

 So why not use a default of 0 on the `validate_auth_cookie` filter and,
 simply pass it to `wp_set_current_user()` once instead of twice with the
 check?

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


More information about the wp-trac mailing list