[wp-trac] [WordPress Trac] #60327: Fix: PHP 8.1 deprecated warning strpos()
WordPress Trac
noreply at wordpress.org
Tue Jan 30 11:08:31 UTC 2024
#60327: Fix: PHP 8.1 deprecated warning strpos()
--------------------------+------------------------------
Reporter: get_dave | Owner: youknowriad
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by youknowriad):
* owner: (none) => youknowriad
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"57383" 57383]:
{{{
#!CommitTicketReference repository="" revision="57383"
Editor: Fix PHP warning in Layout block support.
strpos was triggering a php warning.
This also updates the code to use the now supported str_contains.
Props get_dave, dmsnell, ocean90, mukesh27.
Fixes #60327.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60327#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list