Make WordPress Core

Opened 20 months ago

Last modified 20 months ago

#57235 new defect (bug)

'excerpt_remove_blocks' removes list blocks

Reported by: wildworks's profile wildworks Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Formatting Keywords: has-patch has-unit-tests
Focuses: Cc:

Description

As reported here: https://github.com/WordPress/gutenberg/issues/46167

When an excerpt of a block containing a listing is output, the listing is removed.
This seems to be caused by the fact that list items became blocks in WordPress 6.1.

Change History (1)

This ticket was mentioned in PR #3710 on WordPress/wordpress-develop by @wildworks.


20 months ago
#1

  • Keywords has-patch has-unit-tests added

Trac ticket: https://core.trac.wordpress.org/ticket/57235
Related gutenberg issue: https://github.com/WordPress/gutenberg/issues/46167

This PR fixes a problem with the unintentional removal of the list block in the output of excerpts. This appears to be due to the change of list items to blocks in WordPress 6.1.

At the same time, I added the list block markup in the unit test for excerpt_remove_blocks.

Note: See TracTickets for help on using tickets.