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
MetaBoxesMain renders empty "Meta Boxes" panel when there are only sidebar metaboxes #84173
If the only registered boxes sit in the side location, we get the "Meta Boxes" toggle bar and a drag handle with nothing inside it.
This looks broken. We should remove side from the visbility condition.
Unfortunately, the situation is not that simple. Metaboxes can be moved between the main area and the sidebar. This feature is disabled if the empty main metabox is not rendered.
This is untested, but we might be able to check if the main metabox is empty and set its height to zero if so.
FWIW, in my version of the editor, I'm not able to drag the metaboxes out of the sidebar to that panel. And when a metabox is at the bottom of the sidebar, the down arrow is greyed out. So there must be some conditions involved in their positioning.
Activity
t-hamano commentedon Oct 8, 2026
Thanks for the report.
Unfortunately, the situation is not that simple. Metaboxes can be moved between the main area and the sidebar. This feature is disabled if the empty main metabox is not rendered.
This is untested, but we might be able to check if the main metabox is empty and set its height to zero if so.
andfinally commentedon Oct 8, 2026
Thanks @t-hamano, I didn't think of that!
FWIW, in my version of the editor, I'm not able to drag the metaboxes out of the sidebar to that panel. And when a metabox is at the bottom of the sidebar, the down arrow is greyed out. So there must be some conditions involved in their positioning.