[wp-trac] [WordPress Trac] #18958: Can't set "Show on screen" for Custom post types

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 18 00:32:27 UTC 2011


#18958: Can't set "Show on screen" for Custom post types
-------------------------------+------------------
 Reporter:  dd32               |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  3.3
Component:  Administration     |     Version:  3.3
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------

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:18958.patch] at
 least makes it consistent.

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


More information about the wp-trac mailing list