[wp-trac] [WordPress Trac] #58206: Replace usage of strpos with str_contains
WordPress Trac
noreply at wordpress.org
Sun Jul 16 12:15:01 UTC 2023
#58206: Replace usage of strpos with str_contains
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner:
| SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.3
Component: General | Version:
Severity: blocker | Resolution: fixed
Keywords: good-first-bug 2nd-opinion add-to- | Focuses: coding-
field-guide | standards
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
In [changeset:"56241" 56241]:
{{{
#!CommitTicketReference repository="" revision="56241"
Bootstrap/Load: Require `wp-includes/compat.php` in `src/index.php`.
This allows for using polyfill functions if `src/index.php` is the entry
point (this file exists as a reminder to build the assets, and is
different from the actual `index.php` file that gets built and boots
WordPress).
Includes:
* Moving the check for the required PHP and MySQL versions earlier.
* Making the load order consistent between `src/index.php`, `wp-load.php`,
and `wp-settings.php`.
Follow-up to [46183], [56006], [56007].
Props westonruter, Presskopp, joemcgill, SergeyBiryukov.
See #58206.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58206#comment:62>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list