[wp-trac] [WordPress Trac] #21543: Add a show_metabox parameter to register_taxonomy
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 14 07:14:24 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 F J Kaiser):
Replying to [comment:4 DrewAPicture]:
> {{{
> 'public' => true
> }}}
> or
> {{{
> 'public' => array(
> 'admin_menu' => false,
> 'meta_box' => true
> )
> }}}
I wouldn't add an array. We already got {{{public => true}}} for both of
them. Why add {{{admin_menu => false}}} when the whole thing is an A/B
decision: {{{meta_box/admin_menu}}}: yes = set in string. No need for an
array, as we don't need to state {{{false}}} for the second option - the
{{{typeOf( string )}}} already tells us, that we only want one of them.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21543#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list