[wp-trac] [WordPress Trac] #57839: Coding Standards fixes for WP 6.3

WordPress Trac noreply at wordpress.org
Wed Jul 5 11:13:41 UTC 2023


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

Comment (by SergeyBiryukov):

 In [changeset:"56138" 56138]:
 {{{
 #!CommitTicketReference repository="" revision="56138"
 General: Revert strict comparison in `WP_List_Util` for now.

 Casting the values to a string causes `Array to string conversion` PHP
 warnings, so using loose comparison restores the previous behavior for
 code relying on type juggling when using the `wp_list_filter()` function,
 e.g. comparing a numeric string to an integer.

 The unit test case added for this scenario in the previous commit remains.

 Follow-up to [55908], [56137].

 See #57839.
 }}}

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


More information about the wp-trac mailing list