Make WordPress Core

Opened 4 years ago

Last modified 10 months ago

#57235 new defect (bug)

'excerpt_remove_blocks' removes list blocks

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

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 (2)

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


4 years 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.

#2 @wildworks
10 months ago

Related: #62417 proposes the opposite of this ticket, excluding lists from the excerpt.

Note: See TracTickets for help on using tickets.