WordPress.org

Make WordPress Core

Opened 5 months ago

Closed 2 months ago

Last modified 2 months ago

#26274 closed defect (bug) (fixed)

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

Reported by: kovshenin Owned by: 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 5 months ago.

Download all attachments as: .zip

Change History (3)

kovshenin5 months ago

comment:1 nacin2 months 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.

comment:2 nacin2 months 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.