-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pinned items regression followup. #28526
Conversation
A related issue for pinning/unpinning items that don't have menu items: #14457. |
Size Change: +96 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and looks good!
But we should follow up with a separate fix that either moves the cog back out of the "pinned items" group, or makes sure it always shows up as the first child — or just that it has a child name that is easily targetted.
👍 to this!
Should we land this one as well, despite the failing e2e tests? Happy to merge if I get the thumbs up, and I'll follow up with a ticket for the subsequent improvement. |
Yes. The failing tests are the same from Core regression. |
@jasmussen At a quick look, the failing tests seem related to the media modal, which should be caused by a recent change in Core (see this comment), which was merged to the WP dev branch, which is what e2e tests run on. |
Thanks both. And of course I'll follow up with anything necessary, including that separate ticket. Dinner first, though 😅 |
Ticketed the followup improvement in #28546. |
Cherry-picked to |
Quick followup to #28521, apologies and thank you @Copons for input.
The previous fix hid all pinned items on mobile. But that as of recent changes, and possibly the original cause of the regression, that includes the settings sidebar.
This PR fixes that:
Jacopo further alerted me to the fact that it isn't necessarily as simple as a first-child solution, because if you unpin a plugin, then pin it again, it shows up at as the first child. However that doesn't survive a reload:
For that reason, I would suggest this PR is a good interim fix, because you can't even pin or unpin items on mobile at all.
But we should follow up with a separate fix that either moves the cog back out of the "pinned items" group, or makes sure it always shows up as the first child — or just that it has a child name that is easily targetted.