Ticket #3152 (closed defect (bug): fixed)
WP_User->ID, not WP_User->id
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | General | Version: | 2.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
Fixed several references to WP_User->ID, the id is a lowercase var in this class.
Attachments
Change History
alexkingorg — 5 years ago
-
attachment
patch.diff
added
ID is set when we pull the users table data into the WP_User class. I'd like to stick with uppercase ID since it is more widely used due to it being in the table. How about adding var $ID = 0 to the WP_User class and putting a comment next to $id noting that it is deprecated?
- Keywords has-patch added
- Summary changed from WP_User->id, not WP_User->ID to WP_User->ID, not WP_User->id
Created a patch, based on Ryan's suggestion.
- Status changed from new to closed
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.

patch attached