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
Post Comments Block: "Older Comments" and "Newer Comments" links mis-aligned #40827
Users that still have the now-deprecated Post Comments block in one of their templates will find that the "Older Comments" and "Newer Comments" links aren't left- and right-aligned like they should be, but stacked on top of each other.
Go to the Site Editor and edit the Single page template.
Insert the block named "Post Comments (deprecated)".
Note that the "Older Comments" and "Newer Comments" links aren't left- and right-aligned like they should be, but stacked on top of each other. (Compare this e.g. to the Post Editor, where the links show up properly aligned when the Post Comments block is inserted.)
Screenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Comparing to the Post Editor, it seems like the "Older Comments" and "Newer Comments" links have the alignleft and alignright classes assigned, respectively:
My next best guess is that it has to do with the iframing of the Site Editor (which I know very little about 😅 ).
I just noticed a recent issue, which just had a fix by @youknowriad committed. Unfortunately, it doesn't seem to fix this issue here; maybe it's because that PR was about wp_enqueue_block_style, whereas common.css is enqueued via plain old wp_enqueue_style? 🤔
Activity
ockham commentedon May 5, 2022
Comparing to the Post Editor, it seems like the "Older Comments" and "Newer Comments" links have the

alignleftandalignrightclasses assigned, respectively:That class seems to be coming from Core's
common.css: https://github.com/WordPress/wordpress-develop/blob/b27069117eb22c39d5230ceb39439f2dab82dc08/src/wp-admin/css/common.css#L92-L99So I guess that style isn't being enqueued for the Site Editor.
ockham commentedon May 5, 2022
I checked the page source of the Site Editor, and
common.cssis being loaded there:My next best guess is that it has to do with the iframing of the Site Editor (which I know very little about 😅 ).
I just noticed a recent issue, which just had a fix by @youknowriad committed. Unfortunately, it doesn't seem to fix this issue here; maybe it's because that PR was about
wp_enqueue_block_style, whereascommon.cssis enqueued via plain oldwp_enqueue_style? 🤔cc/ @youknowriad @gziolo
ockham commentedon May 5, 2022
Yeah, so this does seem to fix the issue:
I'll file a PR.
ockham commentedon May 5, 2022
#40846