Skip to content
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

Metaboxes markup differs by post type and has duplicated id #64382

Open
2 tasks done
stokesman opened this issue Aug 8, 2024 · 0 comments
Open
2 tasks done

Metaboxes markup differs by post type and has duplicated id #64382

stokesman opened this issue Aug 8, 2024 · 0 comments
Labels
[Feature] Meta Boxes A draggable box shown on the post editing screen [Type] Bug An existing feature does not function as intended

Comments

@stokesman
Copy link
Contributor

Description

This is to document a couple of issues with markup of metaboxes in the Post Editor.

  1. The "Custom Fields" metabox is in different containers depending on the type of post that’s loaded
  2. There is a duplicated id="postbox-container-2"

These issues don’t have any grave problematic effects that I'm aware of though the first one was presenting a styling challenge when working on #64351

Step-by-step reproduction instructions

  1. With a plugin that adds a metabox activated and the preference to show custom fields on
  2. Edit a post in the Post editor
  3. Note that the metabox for "Custom Fields" is in a separate parent from the metabox of the plugin
  4. Edit a page in the Post editor
  5. Note that the metabox for "Custom Fields" shares a parent with the metabox of the plugin

Screenshots, screen recording, code snippet

Markup while editing a Post

metaboxes-markup-post

Markup while editing a Page

metaboxes-markup-page

Environment info

WP 6.5.2 / Gutenberg 19.0.0

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
@stokesman stokesman added [Type] Bug An existing feature does not function as intended [Feature] Meta Boxes A draggable box shown on the post editing screen labels Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Meta Boxes A draggable box shown on the post editing screen [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

1 participant