#20940 closed defect (bug) (invalid)
wp_authenticate not returning waited var
Reported by: | Rahe | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.3.2 |
Component: | Users | Keywords: | needs-patch |
Focuses: | Cc: |
Description
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.
Change History (3)
#2
@
12 years ago
- Resolution set to invalid
- Status changed from new to closed
The var_dump give infos like this :
object(stdClass)[4343]
public 'ID' => string '1' (length=1)
....
Then all the informations from a user, it was like a wp_user but not a wp_user object.
I have tried to reproduce the bug but no way to do it, maybe i had a particular case..
Sorry i think it's ok, if I encounter this issue again i will take a screenshot ;)
Note: See
TracTickets for help on using
tickets.
Can you supply some more information about the issue? Perhaps do a var_dump() on the result of wp_authenticate ?