Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#26274 closed defect (bug) (fixed)

Use get_current_user_id() instead of $user_ID in wp-admin/user-edit.php

Reported by: kovshenin's profile kovshenin Owned by: nacin's profile nacin
Milestone: 3.9 Priority: normal
Severity: normal Version:
Component: Users Keywords: has-patch
Focuses: administration Cc:

Description

I spent around an hour trying to figure out the difference between the user_id and the checkuser_id fields in user-edit.php, and then it hit me -- the latter uses the $user_ID global, with the uppercase ID, while everything else in the file uses $user_id which is the ID of the user being edited. What a nightmare!

Attachments (1)

26274.diff (508 bytes) - added by kovshenin 12 years ago.

Download all attachments as: .zip

Change History (3)

@kovshenin
12 years ago

#1 @nacin
12 years ago

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

In 27069:

Use get_current_user_id() instead of $user_ID in user-edit.php.

props kovshenin.
fixes #26274.

#2 @nacin
12 years ago

  • Component changed from Administration to Users
  • Focuses administration added
  • Milestone changed from Awaiting Review to 3.9
Note: See TracTickets for help on using tickets.