[wp-trac] [WordPress Trac] #61607: Coding Standards fixes for WP 6.7

WordPress Trac noreply at wordpress.org
Sun Sep 8 22:40:34 UTC 2024


#61607: Coding Standards fixes for WP 6.7
----------------------------+-------------------------------
 Reporter:  hellofromTonya  |       Owner:  SergeyBiryukov
     Type:  task (blessed)  |      Status:  reopened
 Priority:  normal          |   Milestone:  6.7
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  coding-standards
----------------------------+-------------------------------

Comment (by peterwilsoncc):

 To avoid a repeat of #61749 from WordPress 6.6, any PRs making changes to
 strict compaisons will need:

 * anything that use `wp_parse_args()`: test that use both array and query
 string formatted arguments
 * anything that uses options: tests that pass/use the option as the
 expected type (eg, integer) and cast to a string to account for potential
 differences in type returned by `get_option()` depending on whether it is
 called with a warm cache immediatly after `add|update_option()` and a cold
 cache requiring a database query (See #32848 as one example of several)

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


More information about the wp-trac mailing list