[wp-trac] [WordPress Trac] #62827: get_the_content() is not generating group blocks wp-block-group__inner container
WordPress Trac
noreply at wordpress.org
Mon Jan 20 09:31:34 UTC 2025
#62827: get_the_content() is not generating group blocks wp-block-group__inner
container
---------------------------------------------+-----------------------------
Reporter: fahrenheitch | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.6.2
Severity: major | Keywords: needs-patch
Focuses: css, template, coding-standards |
---------------------------------------------+-----------------------------
If you have a shortcode, that outputs content from a custom post type in
your theme somewhere, the get_the_content() function is not returning the
usual html structure for the Group-Block.
**regular output:**
{{{
<div class="wp-block-group"><div class="wp-block-group__inner-container
is-layout-constrained wp-block-group-is-layout-constrained">content
here</div></div>
}}}
**output by get_the_content():**
{{{
<div class="wp-block-group">content here</div>
}}}
The extra container is missing, but it should be returned as well to have
consistend output, no matter how the output is generated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62827>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list