Opened 4 weeks ago
Last modified 30 hours ago
#65286 new defect (bug)
major publishing action buttons are crowded in the Publish settings
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 7.0.1 | Priority: | normal |
| Severity: | normal | Version: | 7.0 |
| Component: | Editor | Keywords: | has-patch |
| Focuses: | administration | Cc: |
Description (last modified by )
Hi there,
On new WP 7 i have problems on publish section (right panel) because the new icons are too big and are not displayed correctly if WP Rocket plugin is active. I attach how it looks on WP 6.9.4 (are displayed OK) and on WP 7.0 (i use latest php 8.4). Hope you will fix the problem.
Attachments (7)
Change History (32)
@
4 weeks ago
Move to Trash link is crowded between Clear Cache button and Publish link in WordPress 7.0
#1
@
4 weeks ago
- Component changed from Query to Editor
- Focuses administration added
- Milestone changed from Awaiting Review to 7.0.1
- Summary changed from icons are to big into the publish settings to major publishing action buttons are crowded in the Publish settings
[61645] switched the #major-publishing-actions container to flex display with space-between.
Could you report this to WP Rocket in case they want to fix the issue in the plugin?
#2
@
4 weeks ago
Hi,
Thank you for your response. I will report this to WP Rocket too, but i'm doubt they will resolve it because i use an old verssion 3.8.8.
This ticket was mentioned in Slack in #core by wildworks. View the logs.
4 weeks ago
#4
@
4 weeks ago
#major-publishing-actions {
padding: 10px;
clear: both;
border-top: 1px solid #dcdcde;
background: #f6f7f7;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap; <-- THIS NEEDS ADDING
}
#5
@
4 weeks ago
By the way, this also happens with Yoast Duplicate Post, in case anyone needs a free plugin to test a patch for this.
#6
@
3 weeks ago
- Keywords has-patch added; needs-patch removed
Attaching a patch with the one-line fix suggested by @cogdesign in comment:4.
Root cause: [61645] converted #major-publishing-actions from float-based
layout to display: flex with justify-content: space-between. The container
is designed around two slots (Move to Trash on the left, Publish/Update on
the right), so any plugin that injects a third item via
post_submitbox_misc_actions or post_submitbox_start gets squeezed into
the middle.
The old float layout wrapped naturally when content overflowed, so this is
a layout regression in 7.0 rather than a plugin bug. Adding flex-wrap: wrap
restores wrap-on-overflow behavior while keeping the new flex alignment for
the default two-button case.
Verified the reproduction with both WP Rocket (per the report) and Yoast
Duplicate Post (per @threadi in comment:5). With the patch applied, the
injected button drops to its own line as it did in 6.9.4, and the default
no-plugin layout is unchanged.
Patch only touches the one rule — keeping the diff minimal for 7.0.1
backport. Happy to follow up with a small row-gap for vertical spacing
between wrapped rows in a separate ticket if that's preferred.
This ticket was mentioned in PR #11964 on WordPress/wordpress-develop by @abhishekfdd.
3 weeks ago
#7
Convert #major-publishing-actions to flex-wrap so third-party buttons injected via post_submitbox_misc_actions or post_submitbox_start fall to a new line instead of crowding the Move to Trash / Publish row.
Regression from [61645], which switched the container from floats to flex with space-between. Verified with WP Rocket and Yoast Duplicate Post.
Fixes #65286.
Trac ticket: https://core.trac.wordpress.org/ticket/65286
## Testing instructions
- Install and activate WP Rocket (or Yoast Duplicate Post — free).
- Edit any post.
- Observe in the Publish meta box: "Move to Trash" is crowded between the plugin-injected button and Publish/Update.
- Apply this patch.
- Reload the editor — the injected button now wraps to its own line and "Move to Trash" / Publish are spaced cleanly. Default no-plugin layout is unchanged.
#8
@
3 weeks ago
Test Report
Environment
- WordPress: Latest trunk
- Browser: Chrome
- OS: Windows 10
- Plugin tested:
- WP Rocket
- Yoast Duplicate Post (free)
Steps to Reproduce
- Install and activate WP Rocket (or Yoast Duplicate Post).
- Edit any existing post.
- Observe the Publish meta box layout:
- "Move to Trash" appears crowded between the plugin-injected button and Publish/Update button.
- Apply the proposed patch.
- Reload the post editor.
Results
- Before patch:
The plugin-injected button caused layout crowding inside the Publish meta box.
"Move to Trash" appeared squeezed between the injected button and Publish/Update button.
- After patch:
The injected plugin button wraps onto its own line correctly.
"Move to Trash" and Publish/Update buttons now have proper spacing.
Default editor layout without plugins remains unchanged.
Conclusion
Patch tested successfully and works as expected.
#9
follow-up:
↓ 12
@
3 weeks ago
I confirm too the patch is working but i see a new one on users -> profile. There i see two AI Functions texts which are not display correctly.
#10
@
3 weeks ago
Thanks @darshitrajyaguru97 for the test report, and thanks @rlucian for
confirming the patch works for the original Publish meta box issue.
Regarding the "AI Functions" labels on the Users → Profile screen — that
looks unrelated to this ticket. The patch here only modifies
#major-publishing-actions, which is scoped to the post edit screen's
Publish meta box and doesn't affect the profile page.
The duplicate label appears to come from a third-party plugin (the
"Funcționalități AI" / "Revocă consimțământul" strings aren't from core).
Could you share which plugin is registering that field? It may be a
plugin-side issue, or — if it reproduces with no plugins active — worth
opening as a separate ticket so it can be triaged on its own merits.
Keeping this ticket focused on the Publish meta box fix so it stays
scoped for the 7.0.1 milestone.
#12
in reply to:
↑ 9
@
3 weeks ago
Replying to rlucian:
I confirm too the patch is working but i see a new one on users -> profile. There i see two AI Functions texts which are not display correctly.
It's Yoast SEO, I've filled a report here https://github.com/yoast/wordpress-seo/issues/23164
This ticket was mentioned in Slack in #core by swissspidy. View the logs.
3 weeks ago
#15
@
3 weeks ago
- Description modified (diff)
While this should be fixed here in Core, I think that a hotfix release can be pushed out to the Classic Editor plugin. Since this issue only presents when using that plugin (ignoring the user edit screen issue for now as that's unrelated), I think that makes the most sense until 7.0.1 can fix the issue in Core.
I've created a pull request for this.
@deppierraz @abhishekfdd @rlucian could you all give that a test?
#16
@
3 weeks ago
Just wanted to note that as @jorbin suggested in Slack, this affects CPTs as well, even without the Classic Editor plugin installed/active. Confirmed this myself on my personal site.
This ticket was mentioned in Slack in #core by jorbin. View the logs.
3 weeks ago
#18
@
3 weeks ago
A hotfix is now available in both Classic Editor version 1.7.0 and Hotfix version 1.4. See: https://make.wordpress.org/core/2026/05/28/hotfix-available-for-65286/

how the icons show on wp 7 and wp 6.9.4