Opened 19 months ago
Closed 19 months ago
#19010 closed defect (bug) (fixed)
"Show on screen" checkboxes inconsistency with CPT
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Administration | Version: | 3.2.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
With the "Book" CPT example from Codex:
On the initial "Edit Book" screen load (i.e. when there's no metaboxhidden_book record in wp_usermeta), all meta boxes are displayed, but only "Featured Image" is checked in "Show on screen" options (see the screenshot).
Attachments (2)
Change History (6)
SergeyBiryukov — 19 months ago
SergeyBiryukov — 19 months ago
comment:1
SergeyBiryukov — 19 months ago
- Milestone changed from Awaiting Review to 3.3
This should be looked at, as part of the work on screens.
Is this still a problem after [19013]? We should try to pass the current screen object instead of IDs.
comment:4
SergeyBiryukov — 19 months ago
- Resolution set to fixed
- Status changed from new to closed
Fixed in [19013].
Note: See
TracTickets for help on using
tickets.

Being called from meta_box_prefs() and do_meta_boxes(), get_hidden_meta_boxes() returns different results, due to different $screen values.
In meta_box_prefs(), it's:
In do_meta_boxes(), it's:
Note the difference in base value.
Not sure what the preferred option is, but 19010.patch at least makes it consistent.