Opened 15 years ago
Closed 15 years ago
#19010 closed defect (bug) (fixed)
"Show on screen" checkboxes inconsistency with CPT
| Reported by: | SergeyBiryukov | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Administration | Version: | 3.2.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Being called from
meta_box_prefs()anddo_meta_boxes(),get_hidden_meta_boxes()returns different results, due to different$screenvalues.In
meta_box_prefs(), it's:In
do_meta_boxes(), it's:Note the difference in
basevalue.Not sure what the preferred option is, but 19010.patch at least makes it consistent.