[wp-trac] [WordPress Trac] #19010: "Show on screen" checkboxes inconsistency with CPT

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 20 01:00:32 UTC 2011


#19010: "Show on screen" checkboxes inconsistency with CPT
----------------------------+------------------------------
 Reporter:  SergeyBiryukov  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.2.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------------

Comment (by SergeyBiryukov):

 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:
 {{{
 WP_Screen Object( [id] => book, [base] => post, ... )
 }}}
 In `do_meta_boxes()`, it's:
 {{{
 stdClass Object( [id] => book, [base] => book )
 }}}
 Note the difference in `base` value.

 Not sure what the preferred option is, but [attachment:19010.patch] at
 least makes it consistent.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19010#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list