[wp-trac] [WordPress Trac] #20940: wp_authenticate not returning waited var
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 13 15:20:29 UTC 2012
#20940: wp_authenticate not returning waited var
--------------------------+-----------------------------
Reporter: Rahe | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 3.3.2
Severity: normal | Keywords: needs-patch
--------------------------+-----------------------------
When using wp_authenticate function the documentation saying returning
wp_error or wp_user objects.
But when the user is authenticated, the function return a standard object
so the test "is_a($thing, 'WP_User')" fail.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20940>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list