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

WordPress Trac noreply at wordpress.org
Tue Jul 19 14:00:50 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:"53719" 53719]:
 {{{
 #!CommitTicketReference repository="" revision="53719"
 Coding Standards: Improve variable names in `wp-trackback.php`.

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

 `$comment_post_ID`, while matching the database field of the same name,
 does not follow the WordPress coding standards, so the variable is now
 renamed to `$comment_post_id`.

 Additionally, these variables are renamed for clarity:

 * `$tb_id` to `$post_id` (this was not the trackback ID)
 * `$tb_url` to `$trackback_url`

 Follow-up to [172], [637], [1616],

 See #55647, #56244.
 }}}

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


More information about the wp-trac mailing list