Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#4354 closed defect (bug) (fixed)

$user_ID not declared global in load_template()

Reported by: markjaquith's profile markjaquith Owned by: markjaquith's profile markjaquith
Milestone: 2.3 Priority: normal
Severity: normal Version: 2.2
Component: Administration Keywords: $user_id
Focuses: Cc:

Description

$user_ID is not declared global in load_template(), so the variable is not accessible without manually declaring the variable global (which is really confusing to a lot of people with even moderate PHP knowledge).

Change History (1)

#1 @markjaquith
17 years ago

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

(In [5581]) declare $user_ID global in load_template(). fixes #4354.

Note: See TracTickets for help on using tickets.