Make WordPress Core

Opened 7 months ago

#61744 new defect (bug)

preg_match fails when className when $block['attrs']['className'] is an array *which is case when "extraClasses" is set*

Reported by: larslo's profile larslo Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.6.1
Component: General Keywords:
Focuses: Cc:

Description

extraClasses is not fount in wp-content, but in wp-includes

[24-Jul-2024 15:47:17 UTC] PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in wp-includes/block-supports/elements.php:248
Stack trace:
#0 wp-includes/block-supports/elements.php(248):

[24-Jul-2024 15:47:45 UTC] PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in wp-includes/block-supports/block-style-variations.php:237
Stack trace:
#0 wp-includes/block-supports/block-style-variations.php(237): preg_match('/
bis-style-(
S...', Array, NULL)

Change History (0)

Note: See TracTickets for help on using tickets.