[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:43:19 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: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------------+------------------------------
Changes (by robert.peake):
* version: => trunk
Comment:
Replying to [comment:1 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`.
That makes sense.
Since most other filter and action hooks work as expected more-or-less
irrespective of priority in relation to core functionality, I would
suggest at minimum that the documentation be updated to reflect the need
for a priority of 20+ in order to prevent logins. As you know, the default
is 10.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46748#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list