[wp-trac] [WordPress Trac] #21240: Ability to "Turn On" Native custom columns for registered custom taxonomies
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 25 19:46:17 UTC 2012
#21240: Ability to "Turn On" Native custom columns for registered custom taxonomies
-----------------------------------+------------------------------
Reporter: jtsternberg | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion has-patch |
-----------------------------------+------------------------------
Changes (by scribu):
* type: feature request => enhancement
Comment:
{{{
case ( in_array( $column_name, $this->taxonomy_columns ) ) :
}}}
That is absolutely wicked! :D
Instead of this:
{{{
294 $custom_taxonomies = array_diff(
$taxonomies, array( 'category', 'post_tag' ) );
295 $this->taxonomy_columns = array_merge(
$this->taxonomy_columns, $custom_taxonomies );
}}}
Why not just set `'show_taxonomy_columns' => array( 'category', 'post_tag'
)` when registering the 'post' post type?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21240#comment:21>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list