Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#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:


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)

#1 @georgestephanis
3 years ago

Can you supply some more information about the issue? Perhaps do a var_dump() on the result of wp_authenticate ?

#2 @Rahe
3 years ago

  • Resolution set to invalid
  • Status changed from new to closed

The var_dump give infos like this :

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 ;)

#3 @helenyhou
3 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.