Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#14609 closed defect (bug) (worksforme)

is_user_logged_in() always returns false

Reported by: foliovision's profile 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)

#1 @filosofo
14 years ago

  • Keywords reporter-feedback added

Have you deactivated all plugins?

One reason $user->id might not be equal $user->ID would be if a plugin defined its own wp_set_current_user.

#2 @nacin
14 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.