Nav block renderer error with markup for inner blocks #59814
Labels
[Block] Navigation
Affects the Navigation Block
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Raising a complimentary Issue in Gutenberg repo for https://core.trac.wordpress.org/ticket/60762.
What follows is pasted from that Trac ticket:
class-wp-html-tag-processor.php on line 876 can have an null value passed to strlen() as $this->html resulting in a PHP8 error.
This seems to have originated from a change in WordPress/wordpress-develop@1f8bb9f#diff-1bea3165bce53d53ac51db1b623291fcd75ca59e08ec124df652312329160685L143-R169 where static::get_markup_for_inner_block( $inner_block ) can return null instead of an empty string.
If the function is changed from
to the following, this is mitigated.
The text was updated successfully, but these errors were encountered: