[wp-trac] [WordPress Trac] #45059: Changed meaningless variable name "$r"

WordPress Trac noreply at wordpress.org
Wed Oct 10 16:48:04 UTC 2018


#45059: Changed meaningless variable name "$r"
----------------------------------------+-------------------------------
 Reporter:  freewebmentor               |       Owner:  (none)
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  General                     |     Version:  4.9.8
 Severity:  minor                       |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  coding-standards
----------------------------------------+-------------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch dev-feedback needs-refresh => needs-patch good-
     first-bug
 * milestone:  Awaiting Review => Future Release


Comment:

 `$r` is used so that the original `$args` array is still available to be
 passed to various hooks.

 Newer code uses `$parsed_args` for that, see [41733] for example.

 So let's change `$r` to `$parsed_args` across the older code as well for
 consistency.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45059#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list