[wp-trac] [WordPress Trac] #64732: Images Inserted into a Post Using Links with Center Alignment, Edited and Saved as HTML, Display Left Aligned
WordPress Trac
noreply at wordpress.org
Thu Mar 5 02:06:00 UTC 2026
#64732: Images Inserted into a Post Using Links with Center Alignment, Edited and
Saved as HTML, Display Left Aligned
----------------------------------+--------------------------
Reporter: ann47he1rpjggx6f3yso | Owner: westonruter
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 7.0
Component: Script Loader | Version: 6.9
Severity: normal | Resolution:
Keywords: has-screenshots | Focuses:
----------------------------------+--------------------------
Comment (by westonruter):
Thank you. OK, in [https://www.sharedbits.net/short-bits-2026/?cachebust
the version] which is working as expected, there are these two additional
style rules present:
{{{#!css
.wp-block-image .aligncenter, .wp-block-image .alignleft, .wp-block-image
.alignright, .wp-block-image.aligncenter, .wp-block-image.alignleft, .wp-
block-image.alignright {
display: table;
}
.wp-block-image.aligncenter {
text-align: center;
}
}}}
These are being loaded from https://www.sharedbits.net/wp-
includes/css/dist/block-library/style.min.css?ver=6.9.1
These styles are missing from [https://www.sharedbits.net/short-
bits-2026/?cachebust&should_load_separate_core_block_assets=true the other
version], where separate block styles are being loaded on demand as
opposed to the single combined block library always being enqueued.
The above styles should normally be added by enqueueing the Image block's
stylesheet: https://www.sharedbits.net/wp-
includes/blocks/image/style.min.css
However, this stylesheet is not getting enqueued for you.
So the issue doesn't seem related to #64389 because the issue isn't with a
different CSS cascade. The issue is some styles are missing entirely. How
is the content for that post being rendered in the template? Is it using a
regular `the_content()`? If WordPress isn't doing `do_blocks()` on the
content, then it isn't able to discover which block styles it needs to
enqueue.
I suggest also reading the
[https://make.wordpress.org/core/2025/11/18/wordpress-6-9-frontend-
performance-field-guide/#load-block-styles-on-demand-in-classic-
themes:~:text=Otherwise%2C%20if%20you%20notice%20that%20you%20are%20now%20missing%20some%20expected%20styles
relevant section] from the 6.9 performance field guide to see if it
applies to your situation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64732#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list