[wp-trac] [WordPress Trac] #58831: Coding Standards fixes for WP 6.4

WordPress Trac noreply at wordpress.org
Fri Aug 18 10:07:40 UTC 2023


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

Comment (by SergeyBiryukov):

 In [changeset:"56411" 56411]:
 {{{
 #!CommitTicketReference repository="" revision="56411"
 Coding Standards: Improve variable names in `wp_save_image()`.

 This resolves a few WPCS warnings:
 {{{
 Variable "$sX" is not in valid snake_case format, try "$s_x"
 Variable "$sY" is not in valid snake_case format, try "$s_y"
 }}}

 The `$sX` and `$sY` variables are renamed to `$original_width` and
 `$original_height`, respectively.

 Additionally, the `$fwidth` and `$fheight` variables are renamed to
 `$full_width` and `$full_height`, for clarity.

 Follow-up to [11965], [22094], [56400].

 See #58831.
 }}}

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


More information about the wp-trac mailing list