Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#60327 closed defect (bug) (fixed)

Fix: PHP 8.1 deprecated warning strpos()

Reported by: get_dave Owned by: youknowriad
Priority: normal Milestone: 6.5
Component: Editor Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

Syncs changes from ​https://github.com/WordPress/gutenberg/pull/56171 to Core.

Fix for PHP warning in Layout Block Supports.

Change History (7)

This ticket was mentioned in ​PR #5935 on ​WordPress/wordpress-develop by ​@get_dave.


3 years ago
#1

  • Keywords has-patch added

Syncs changes from ​https://github.com/WordPress/gutenberg/pull/56171 to Core.

Fix for PHP warning in Layout Block Supports.

Trac ticket: https://core.trac.wordpress.org/ticket/60327

​@get_dave commented on ​PR #5935:


3 years ago
#2

sorry if I missed this one!

Nope. I'm just trying to help things along. Thank you 👍

@youknowriad Can we commit this please?

​@get_dave commented on ​PR #5935:


3 years ago
#4

@ocean90 @dmsnell I've now:

So we should be good to go 🤞

Please can this be approved so I can tick it off the backports list. Many thanks in advance 🙇

cc @youknowriad

#5 @youknowriad
3 years ago

  • Owner set to youknowriad
  • Resolution → fixed
  • Status new → closed

In 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.

#7 @youknowriad
3 years ago

  • Milestone Awaiting Review → 6.5
Note: See TracTickets for help on using tickets.