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:


As reported here:

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

  • Keywords has-patch has-unit-tests added

Trac ticket:
Related gutenberg issue:

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.