[wp-trac] [WordPress Trac] #55647: Coding Standards fixes for WP 6.1

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


#55647: Coding Standards fixes for WP 6.1
----------------------------+-------------------------------
 Reporter:  costdev         |       Owner:  (none)
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  6.1
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  coding-standards
----------------------------+-------------------------------

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/55647#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list