[wp-trac] [WordPress Trac] #21543: Add a show_metabox parameter to register_taxonomy

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 14 14:44:33 UTC 2012


#21543: Add a show_metabox parameter to register_taxonomy
-----------------------------------+------------------------------
 Reporter:  wycks                  |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Taxonomy               |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+------------------------------

Comment (by DrewAPicture):

 Setting `'meta_box => true` isn't actually necessary, I just added it for
 the comparison.
 {{{
 'public' => array(
         'admin_menu' => false
 )
 }}}
 Is exactly the same.

 The reason I went with an array instead of a string was so that we
 wouldn't get ''stuck with an A/B decision''. It future-proofs the `public`
 param. Look at it from an extensibility standpoint. In the future a need
 to add another argument would be trivial, but turning an `A/B` decision
 into an `A/B/C` decision would probably result in an array anyway.

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


More information about the wp-trac mailing list