WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 3 months ago

#52427 closed enhancement (duplicate)

Enahnce excerpt_remove_blocks to ignore disallowed inner blocks but not exclude the parent block entirely

Reported by: clubduece Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.6
Component: General Keywords:
Focuses: Cc:

Description

I agree that certain blocks most likely cannot contribute to an auto-generated excerpt in a meaningful way. However, in the case where a parent block has multiple inner blocks and some of the blocks in the parent could contribute to the excerpt why is the baby thrown out with the bathwater?

I propose enhancing excerpt_remove_blocks to continue parsing the remaining inner blocks of a parent block while ignoring those that are not whitelisted.

Change History (1)

#1 @sabernhardt
3 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @clubduece and thanks for the ticket!

It seems we are already tracking that issue in #47637. If you have something to add, please comment or contribute there.

Note: See TracTickets for help on using tickets.