[wp-trac] [WordPress Trac] #46748: authenticate filter hook does not behave as expected for priority values less than 20

WordPress Trac noreply at wordpress.org
Mon Apr 1 12:39:23 UTC 2019


#46748: authenticate filter hook does not behave as expected for priority values
less than 20
------------------------------------+------------------------------
 Reporter:  robert.peake            |       Owner:  (none)
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:                          |     Focuses:
------------------------------------+------------------------------

Comment (by swissspidy):

 `wp_authenticate_username_password` runs on priority 20, so I guess this
 happens because the function does not immediately return `$user` if it's a
 `WP_Error`.

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


More information about the wp-trac mailing list