[wp-trac] [WordPress Trac] #57839: Coding Standards fixes for WP 6.3
WordPress Trac
noreply at wordpress.org
Wed Jun 28 14:31:56 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 david.binda):
Having the r55908 deployed on the WordPress.com revealed that the change
may easily affect any code which has been (unintentionally) relying on
type juggling when using the `wp_list_filter` function (in our case, it's
been a string vs. int type juggling which got broken with the strict
comparison).
It's a similar thing to the one reported above in
https://core.trac.wordpress.org/ticket/57839#comment:63
I do understand the benefits of the strict comparison, but wanted to
report the issue, since it's hard to spot and may easily break things in
existing code in plugins/themes which is taking advantage of those handy
functions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57839#comment:70>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list