You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The latest posts block prints the block comment on the front when the full post is enabled #69427
This issue becomes more pronounced in 6.9-beta4 because classic themes start to load block styles on demand (via Core-64099). Since the content for the posts listed in the Latest Posts aren't run through do_blocks(), it means the styles for those blocks never get loaded on demand. For classic themes up until 6.8 this wasn't an issue, because they were configured to not load styles on demand, meaning a stylesheet for the Cover block will be added to the page even if it isn't used. This was already the case for Twenty Twenty-Five:
Expected
Actual
As of 6.9-beta4, the issue appears in classic themes as well:
Expected
Actual
Reproduction steps:
Create a new post called "Cover Block" with a Cover block as the first block
Create a new page called "Post List" and add a single Post List block configured to show full content:
View the "Post List" page on the frontend. Notice the HTML output has the block comments present. Note also how in T25, the Cover block is unstyled. In contrast, in T21 in 6.8, the Cover block appears styled, whereas in 6.9-beta4, the Cover block appears unstyled. The lack of styling is due to the absence of the wp-block-cover stylesheet from being enqueued (and the wp-block-library is loading common.css instead of style.css).
Activity
coder-rancho commentedon Mar 5, 2025
I was not able to reproduce this issue even after downgrading the version to
6.7.Screen.Recording.2025-03-05.at.3.03.13.PM.mov
carolinan commentedon Mar 5, 2025
Are you looking at the source code? Its not part of the video.
karthikeya-io commentedon Mar 5, 2025
Yes, I too can see the block comments in FE
coder-rancho commentedon Mar 5, 2025
I looked at the source code. I'm able to reproduce the issue.
This seems like a issue with core and not with Gutenberg plugin.
Screen.Recording.2025-03-05.at.4.20.55.PM.mov
westonruter commentedon Nov 7, 2025
I'm seeing this too, thanks to @sabernhardt.
This issue becomes more pronounced in 6.9-beta4 because classic themes start to load block styles on demand (via Core-64099). Since the content for the posts listed in the Latest Posts aren't run through
do_blocks(), it means the styles for those blocks never get loaded on demand. For classic themes up until 6.8 this wasn't an issue, because they were configured to not load styles on demand, meaning a stylesheet for the Cover block will be added to the page even if it isn't used. This was already the case for Twenty Twenty-Five:As of 6.9-beta4, the issue appears in classic themes as well:
Reproduction steps:
<!-- wp:latest-posts {"displayPostContent":true,"displayPostContentRadio":"full_post"} /-->wp-block-coverstylesheet from being enqueued (and thewp-block-libraryis loadingcommon.cssinstead ofstyle.css).carolinan commentedon Jul 10, 2026
I have retested after the merge of #74866 and this has been fixed.