[wp-trac] [WordPress Trac] #52427: Enahnce excerpt_remove_blocks to ignore disallowed inner blocks but not exclude the parent block entirely
WordPress Trac
noreply at wordpress.org
Tue Feb 2 20:16:01 UTC 2021
#52427: Enahnce excerpt_remove_blocks to ignore disallowed inner blocks but not
exclude the parent block entirely
-------------------------+-----------------------------
Reporter: clubduece | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.6
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52427>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list