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

WordPress Trac noreply at wordpress.org
Thu Apr 14 15:14:05 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:"53183" 53183]:
 {{{
 #!CommitTicketReference repository="" revision="53183"
 Coding Standards: Rename the `$object` variable to `$attachment` in
 several files.

 This brings some consistency with a similar fragment in
 `Custom_Image_Heade::step_2_manage_upload()`,
 `WP_Site_Icon::insert_attachment()`, `media_handle_upload()`, and
 clarifies the type of the data.

 Follow-up to [52946], [53137].

 See #55327, #54728.
 }}}

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


More information about the wp-trac mailing list