[wp-trac] [WordPress Trac] #63168: Coding Standards fixes for WP 6.9

WordPress Trac noreply at wordpress.org
Sun Nov 9 23:01:48 UTC 2025


#63168: Coding Standards fixes for WP 6.9
-------------------------------------------------+-------------------------
 Reporter:  desrosj                              |       Owner:  (none)
     Type:  task (blessed)                       |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.9
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests changes-    |     Focuses:  coding-
  requested                                      |  standards
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"61187" 61187]:
 {{{
 #!CommitTicketReference repository="" revision="61187"
 Coding Standards: Use more meaningful variable names in Classic Widgets
 screen.

 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.

 This commit includes renaming of the following variables:
 * `$sbname` to `$sidebar_name`.
 * `$sbvalue` to `$sidebar_data`.
 * `$j` to `$widget_count`.
 * `$i` to `$sidebar_index`.
 * `$sb` to `$sidebar`.
 * `$key` to `$sidebar_id`.

 Follow-up to [10912], [11009], [11427], [26285], [50997].

 Props costdev, mukesh27.
 See #63168.
 }}}

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


More information about the wp-trac mailing list