[wp-trac] [WordPress Trac] #45282: Block Editor: Don't show the Custom Fields meta box option if the meta box has been removed
WordPress Trac
noreply at wordpress.org
Mon Nov 12 03:23:03 UTC 2018
#45282: Block Editor: Don't show the Custom Fields meta box option if the meta box
has been removed
--------------------------+---------------------
Reporter: pento | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0
Component: Editor | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+---------------------
Comment (by pento):
Thanks for the review, @noisysocks!
1. Good catch, done!
2. We can't move it, unfortunately. `$wp_meta_boxes` will be altered when
`register_and_do_post_meta_boxes()` is run, so we need to check for the
`postcustom` meta box after that. However
`register_and_do_post_meta_boxes()` needs to be run as late as possible,
to ensure meta boxes have been registered.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45282#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list