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

WordPress Trac noreply at wordpress.org
Tue Feb 14 15:44:55 UTC 2023


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

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55334" 55334]:
 {{{
 #!CommitTicketReference repository="" revision="55334"
 Coding Standards: Rename the remaining `$cat_ID` variables to `$cat_id`.

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

 Affected functions:
 * `wp_delete_category()`
 * `get_category_rss_link()`
 * `get_catname()`

 Follow-up to [836], [2068], [2551], [2695], [6365], [10959], [52958],
 [55190].

 Fixes #56754.
 }}}

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


More information about the wp-trac mailing list