[wp-trac] [WordPress Trac] #54728: Coding Standards fixes for WP 6.0

WordPress Trac noreply at wordpress.org
Sun Mar 20 14:55:21 UTC 2022


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

Comment (by SergeyBiryukov):

 In [changeset:"52958" 52958]:
 {{{
 #!CommitTicketReference repository="" revision="52958"
 Coding Standards: Rename the `$cat_ID` argument to `$cat_id` in
 `get_the_category_by_ID()`.

 This fixes a `Variable "$cat_ID" is not in valid snake_case format` WPCS
 warning.

 Props azouamauriac.
 See #54728.
 }}}

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


More information about the wp-trac mailing list