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
hasMetaBoxes selector returns true even when user has disabled all metaboxes from displaying #52724
The selector wp.data.select('core/edit-post').hasMetaBoxes() returns true even after a user has disabled all metaboxes from displaying via the display settings.
This issue is currently preventing the block editor from getting displayed in an iframe even when the metaboxes aren't actually displayed.
Step-by-step reproduction instructions
Enable a plugin that loads a traditional metabox such as Yoast SEO
Open the editor and disable all the metabox panels in the Settings -> Panels menu
Open the browser console and run the wp.data.select('core/edit-post'). hasMetaBoxes() selector
See that it still returns true.
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.3 Beta 4
no gutenberg plugin
emptytheme
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes, I don't think hasMetaBoxes mean hasVisibleMetaboxes in this case. It's more about the meta boxes that are sent from the server. That said, even if we had hasVisibleMetaboxes, I'm not sure that it would have been the right selector for the iframed editor because adding and removing the iframe when the value changes on the fly is a bit risky. (Re-rendering everything...)
Activity
youknowriad commentedon Sep 14, 2023
Yes, I don't think
hasMetaBoxesmeanhasVisibleMetaboxesin this case. It's more about the meta boxes that are sent from the server. That said, even if we hadhasVisibleMetaboxes, I'm not sure that it would have been the right selector for the iframed editor because adding and removing the iframe when the value changes on the fly is a bit risky. (Re-rendering everything...)fabiankaegy commentedon Apr 3, 2024
Thanks for that explanation. Closing this for now then 👍