[wp-trac] [WordPress Trac] #46133: Parse blocks to generate the excerpt
WordPress Trac
noreply at wordpress.org
Tue Apr 23 03:30:12 UTC 2019
#46133: Parse blocks to generate the excerpt
--------------------------------------+-----------------------
Reporter: gziolo | Owner: pento
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.2
Component: Formatting | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------
Comment (by azaozz):
What's the way forward here, can we skip blocks that have nested blocks?
Or perhaps have a whitelist for what blocks can be nested?
Ideally we are looking for some text that is relevant to the post content.
If no text is found, we can perhaps use an image. But some posts may not
have either (a gallery post?). In these edge cases it would be acceptable
to have an empty excerpt imho.
Dynamic blocks may not be appropriate for use in excerpts too. Skipping
over them and trying to find an actual paragraph would probably be better.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46133#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list