[wp-trac] [WordPress Trac] #26274: Use get_current_user_id() instead of $user_ID in wp-admin/user-edit.php

WordPress Trac noreply at wordpress.org
Tue Nov 26 19:27:39 UTC 2013


#26274: Use get_current_user_id() instead of $user_ID in wp-admin/user-edit.php
----------------------------+-----------------------------
 Reporter:  kovshenin       |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:  has-patch
----------------------------+-----------------------------
 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!

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26274>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list