Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#9309 closed defect (bug) (fixed)

Notice: Undefined variable: user in /wp-admin/includes/user.php on line 397

Reported by: mark8barnes's profile mark8barnes Owned by:
Milestone: 2.7.2 Priority: normal
Severity: minor Version: 2.7.1
Component: Administration Keywords: has-patch, needs-testing
Focuses: Cc:

Description

if WP_DEBUG is on (and therefore E_NOTICE is also on), you get the above error when confirming the deletion of a user.

I presume the error is caused because of a missing

$user = new WP_User($id);

at the beginning of the function

Change History (2)

#1 @ryan
16 years ago

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

(In [10760]) Create user object. Props mark8barnes. fixes #9309 for trunk

#2 @ryan
16 years ago

(In [10761]) Create user object. Props mark8barnes. fixes #9309 for 2.7

Note: See TracTickets for help on using tickets.