Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#4354 closed defect (bug) (fixed)

$user_ID not declared global in load_template()

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


$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
11 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.