[wp-trac] [WordPress Trac] #31686: wp_authenticate_username_password() should check for a WP_Error object
WordPress Trac
noreply at wordpress.org
Thu Mar 19 15:45:41 UTC 2015
#31686: wp_authenticate_username_password() should check for a WP_Error object
--------------------------+------------------------------
Reporter: kwisatz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by kwisatz):
'''Appendix:'''
I am no longer 100% sure about this.
The problem is, what happens when the plugin hooking into the
authentication process is unable to perform authentication (perhaps the
authentication server is unreachable). In such a case, you might also want
to return a WP_Error, but in this case, it's not that the user is invalid,
it's just that we cannot tell.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31686#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list