[wp-trac] [WordPress Trac] #53604: Excerpts don't handle `innerBlocks` for groups and nested columns properly

WordPress Trac noreply at wordpress.org
Tue Jul 6 15:32:02 UTC 2021


#53604: Excerpts don't handle `innerBlocks` for groups and nested columns properly
----------------------------------------+----------------------
 Reporter:  aristath                    |       Owner:  desrosj
     Type:  defect (bug)                |      Status:  closed
 Priority:  normal                      |   Milestone:  5.8
Component:  Posts, Post Types           |     Version:  trunk
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+----------------------
Changes (by desrosj):

 * owner:  (none) => desrosj
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51348" 51348]:
 {{{
 #!CommitTicketReference repository="" revision="51348"
 Posts: Prevent an empty excerpt when groups and nested column blocks are
 present.

 This improves the logic within `excerpt_remove_blocks()` to better handle
 `innerBlocks`. This prevents an empty excerpt from being returned when
 `core/columns`, `core/column`, and `core/group` blocks are present.

 This issue has been surfaced in the Query Loop block, where excerpts can
 be set to display.

 Props aristath.
 Fixes #53604.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53604#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list