Make WordPress Core

Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#60327 closed defect (bug) (fixed)

Fix: PHP 8.1 deprecated warning strpos()

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

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.


8 months 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:


8 months 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:


8 months 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
8 months ago

  • Owner set to youknowriad
  • Resolution set to fixed
  • Status changed from new to 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
8 months ago

  • Milestone changed from Awaiting Review to 6.5
Note: See TracTickets for help on using tickets.