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

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 14 01:26:12 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  |
-----------------------------------+------------------------------
Changes (by DrewAPicture):

 * cc: xoodrew@… (added)
 * keywords:   => has-patch 2nd-opinion


Comment:

 I'm not sure this constitutes 'major changes' but took a stab at a
 different option in [attachment:21543.diff]. Taking a cue from how
 `rewrite` was handled in `register_post_type()`, I allowed `public` to
 accept either a boolean or array. And it's backward compatible, so either
 of these works:
 {{{
 'public' => true
 }}}
 or
 {{{
 'public' => array(
         'admin_menu' => false,
         'meta_box' => true
 )
 }}}

 The indexes also default to true if not set.

 I'd appreciate some feedback on whether there's a more elegant way to go
 about it.

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


More information about the wp-trac mailing list