Opened 14 years ago
Closed 14 years ago
#14609 closed defect (bug) (worksforme)
is_user_logged_in() always returns false
Reported by: | FolioVision | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
In WP 3.0.1, is_user_logged_in() always returns false.
Can be easily fixed just by changing line 749 from "if ( $user->id == 0 )" to "if ( $user->ID == 0 )".
Change History (2)
Note: See
TracTickets for help on using
tickets.
Have you deactivated all plugins?
One reason
$user->id
might not be equal$user->ID
would be if a plugin defined its ownwp_set_current_user
.