Since WordPress 2.1.0, using the WP_User object's magic __get method
to retrieve the user's internal ID value has been deprecated. When
running with WP_DEBUG defined, calls like $user->id will emit
deprecation warnings because this member variable's name has been
changed to ID (all capitalized lettering).
This commit updates all calls to $user->id to the current $user->ID
name so that these deprecation warnings are no longer written to debug
logs.
Since WordPress 2.1.0, using the WP_User object's magic
__get
method to retrieve the user's internal ID value has been deprecated. When running withWP_DEBUG
defined, calls like$user->id
will emit deprecation warnings because this member variable's name has been changed toID
(all capitalized lettering).This commit updates all calls to
$user->id
to the current$user->ID
name so that these deprecation warnings are no longer written to debug logs.