[wp-trac] [WordPress Trac] #56754: Use consistent, coding standard compliant naming for category ID variables

WordPress Trac noreply at wordpress.org
Thu Feb 2 13:58:02 UTC 2023


#56754: Use consistent, coding standard compliant naming for category ID variables
--------------------------+-------------------------------
 Reporter:  hilayt24      |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  6.2
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  coding-standards
--------------------------+-------------------------------

Comment (by SergeyBiryukov):

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

 This resolves a few WPCS warnings:
 {{{
 Variable "$cat_ID" is not in valid snake_case format, try "$cat_i_d"
 }}}

 Follow-up to [2695], [4490], [52958].

 Props hilayt24, viralsampat, desrosj, robinwpdeveloper, tanazmasaba,
 costdev, SergeyBiryukov.
 See #56754.
 }}}

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


More information about the wp-trac mailing list