WordPress/wp-includes/blocks
desrosj 98579e4495 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.
Built from https://develop.svn.wordpress.org/trunk@51348


git-svn-id: http://core.svn.wordpress.org/trunk@50957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 15:32:57 +00:00
..
archives Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
audio Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
block Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
button Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
buttons Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
calendar Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
categories Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
code Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
column Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
columns Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
cover Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
embed Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
file Build/Test Tools: Revert [51259-51256,51265]. 2021-06-30 02:14:56 +00:00
freeform Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
gallery Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
group Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
heading Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
html Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
image Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
latest-comments Block Editor: Package updates including fixes from Gutenberg for WordPress 5.8 RC1. 2021-06-28 16:01:36 +00:00
latest-posts Block Editor: Package updates including fixes from Gutenberg for WordPress 5.8 RC1. 2021-06-28 16:01:36 +00:00
legacy-widget Block Editor: Update the WordPress packages with the fixes for 5.8 beta 2. 2021-06-15 08:52:30 +00:00
list Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
loginout Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
media-text Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
missing Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
more Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
nextpage Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
page-list Block Editor: Include the page list block server-side code. 2021-06-08 18:13:01 +00:00
paragraph Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
post-content Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
post-date Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
post-excerpt Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
post-featured-image Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
post-template Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
post-terms Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
post-title Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
preformatted Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
pullquote Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
query Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
query-pagination Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
query-pagination-next Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
query-pagination-numbers Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
query-pagination-previous Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
query-title Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
quote Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
rss Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
search Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
separator Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
shortcode Block Editor: Include the latest fixes targetted for 5.8 RC1. 2021-06-29 15:53:43 +00:00
site-logo Block Editor: Update the packages with a number of fixes targeted for Beta 4. 2021-06-25 15:52:22 +00:00
site-tagline Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
site-title Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
social-link Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
social-links Block Editor: Update the WordPress packages with the fixes for 5.8 beta 2. 2021-06-15 08:52:30 +00:00
spacer Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
table Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
tag-cloud Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
text-columns Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
verse Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
video Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
archives.php Block Editor: Update the WordPress packages for 5.6 beta 2 2020-10-27 09:34:46 +00:00
block.php Block Editor: Update packages with latest fixes for 5.8 RC2 2021-07-06 14:38:40 +00:00
calendar.php Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00
categories.php Block Editor: Include the latest fixes targetted for 5.8 RC1. 2021-06-29 15:53:43 +00:00
file.php Block Editor: Update the packages with a number of fixes targeted for Beta 4. 2021-06-25 15:52:22 +00:00
index.php Editor: Include Cover block in the list of block types registered using metadata files. 2021-06-17 11:57:56 +00:00
latest-comments.php Editor: Update @wordpress npm packages 2021-01-28 02:04:13 +00:00
latest-posts.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
legacy-widget.php Posts: Prevent an empty excerpt when groups and nested column blocks are present. 2021-07-06 15:32:57 +00:00
loginout.php Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
page-list.php Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
post-content.php Block Editor: Update packages with latest fixes for 5.8 RC2 2021-07-06 14:38:40 +00:00
post-date.php Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
post-excerpt.php Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
post-featured-image.php Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
post-template.php Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
post-terms.php Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
post-title.php Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
query-pagination-next.php Block Editor: Update packages and backport the latest Gutenberg fixes. 2021-06-01 08:10:04 +00:00
query-pagination-numbers.php Block Editor: Update packages and backport the latest Gutenberg fixes. 2021-06-01 08:10:04 +00:00
query-pagination-previous.php Block Editor: Update packages and backport the latest Gutenberg fixes. 2021-06-01 08:10:04 +00:00
query-pagination.php Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
query-title.php Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
query.php Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
rss.php Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00
search.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
shortcode.php Editor: update JavaScript packages 2020-06-26 13:33:47 +00:00
site-logo.php Block Editor: Add the Site Logo block's server implementation. 2021-06-08 08:27:58 +00:00
site-tagline.php Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
site-title.php Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
social-link.php Block Editor: Update packages and backport the latest Gutenberg fixes. 2021-06-01 08:10:04 +00:00
tag-cloud.php Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00