[wp-trac] [WordPress Trac] #57839: Coding Standards fixes for WP 6.3
WordPress Trac
noreply at wordpress.org
Sun May 7 11:42:34 UTC 2023
#57839: Coding Standards fixes for WP 6.3
--------------------------------------+---------------------
Reporter: hellofromTonya | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.3
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by SergeyBiryukov):
In [changeset:"55726" 55726]:
{{{
#!CommitTicketReference repository="" revision="55726"
Coding Standards: Bring more consistency to PHP 8.0 string function
polyfills.
This adjusts `str_contains()` code layout to have an early exit for an
empty `$needle`, matching similar fragments in `str_starts_with()` and
`str_ends_with()` for better readability.
Follow-up to [52039], [52040].
See #57839.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57839#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list