[wp-trac] [WordPress Trac] #56448: Use meaningful variable name for $c in WP_Users_List_Table class

WordPress Trac noreply at wordpress.org
Mon Sep 5 16:00:31 UTC 2022


#56448: Use meaningful variable name for $c in WP_Users_List_Table class
-------------------------+---------------------
 Reporter:  burhandodhy  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.1
Component:  Users        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"54070" 54070]:
 {{{
 #!CommitTicketReference repository="" revision="54070"
 Coding Standards: Use more meaningful variable names in
 `WP_Users_List_Table`.

 This renames some variables for clarity, per the
 [https://developer.wordpress.org/coding-standards/wordpress-coding-
 standards/php/#naming-conventions Naming Conventions]:
 > Don’t abbreviate variable names unnecessarily; let the code be
 unambiguous and self-documenting.

 * `$c` is renamed to `$columns` in `::get_columns()` and
 `::get_sortable_columns()`.
 * `$r` is renamed to `$row` in `::single_row()`.

 Follow-up to [3677], [5542], [6852], [8936], [15491], [16573].

 Props burhandodhy, costdev, mukesh27, Presskopp.
 See #56448, #55647.
 }}}

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


More information about the wp-trac mailing list