[wp-trac] [WordPress Trac] #32481: Pass the original `$user_id` to the filter in `get_the_author_meta()`
WordPress Trac
noreply at wordpress.org
Mon May 25 06:07:05 UTC 2015
#32481: Pass the original `$user_id` to the filter in `get_the_author_meta()`
--------------------------------+------------------------
Reporter: dlh | Owner: chriscct7
Type: enhancement | Status: accepted
Priority: normal | Milestone: 4.3
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
--------------------------------+------------------------
Comment (by chriscct7):
Replying to [comment:3 sc0ttkclark]:
> I'd prefer `$original_user_id` for a better contextual variable name and
for more clear filter doc purposes.
While I like the additional context it should be noted that we don't have
any variable naming precedent for that for old userids like we do with
$old_value, and also some people might not like having such a long
variable name passed into a filter, particularly if they use a code editor
or styling preference that limits the screen width, to say, 80 characters.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32481#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list