-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Always render metaboxes areas and use CSS to hide them when all panel are inactive #67228
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +16 B (0%) Total Size: 1.82 MB
ℹ️ View Unchanged
|
2d06fe7
to
7d9d113
Compare
In the last commit: when the Meta Boxes area is hidden, it shouldn't be a |
Noting that the 'MetaBoxVisibility' component ha sbeen refactored a few hours ago in #67265 although I think it's not directly relevant for this issue as the change is about code quality and doesn't change the behavior. Cc @stokesman @Mamaduka |
Closing in favor of #67254 |
Fixes #67207
What?
WordPress 6.7 introduced a breaking change related to metaboxes where the 'normal' and 'advanced' metaboxes area don't render any HTML when all metaboxes panels are disabled in Preferences > General > Advanced.
Previously, the metaboxes HTML content was rendered and hidden with CSS.
Why?
Given the metaboxes content HTML is not rendered any longer, any form and hidden input fields used to save meta are not rendered as well. As such, Gutenberg will not fire a POST request to save those meta because the metaboxes areas are 'empty'.
How?
This PR attempts to restore the previous behavior by rendering the HTML anyways and hiding the content with CSS when all metaboxes panels are disabled in Preferences > General > Advanced.
Testing Instructions
POST
request topost.php
to save meta fields #67207Important:
Test the layout and expected behavior in various conditions for example with a viewport height less than 550 pixels. Test with other plugins that add metaboxes in teh normal and advanced areas.
Testing Instructions for Keyboard
Screenshots or screencast