[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 12:57:17 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 boonebgorges):
> we don't have any variable naming precedent for that for old userids
like we do with $old_value
{{{ $ grep -nR "@param [a-zA-Z]\+ \$original_" src/ }}}
and similar greps show that we are pretty evenly split between
`$original_`, `$raw_`, and `$old_`. IMO, `$original_` is the clearest, so
let's go with it. (In your own callback functions, you can use whatever
short variable name you want.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32481#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list