[wp-trac] [WordPress Trac] #21240: Ability to "Turn On" Native custom columns for registered custom taxonomies

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 20 09:56:19 UTC 2012


#21240: Ability to "Turn On" Native custom columns for registered custom taxonomies
------------------------------+---------------------
 Reporter:  jtsternberg       |       Owner:  nacin
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  3.5
Component:  Taxonomy          |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------

Comment (by tott):

 The changed behavior in putting previous category and post-tag cases into
 the default section in r21788 breaks manage_*posts_custom_column hooks if
 you also want to include custom taxonomies via these hooks as the
 $taxonomy value is not reset.
 The following change fixes this.
 {{{
 Index: wp-admin/includes/class-wp-posts-list-table.php
 ===================================================================
 --- wp-admin/includes/class-wp-posts-list-table.php     (revision 21921)
 +++ wp-admin/includes/class-wp-posts-list-table.php     (working copy)
 @@ -629,6 +629,7 @@
                         break;

                         default:
 +                               $taxonomy = null;
                                 if ( 'categories' == $column_name )
                                         $taxonomy = 'category';
                                 elseif ( 'tags' == $column_name )
 }}}

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


More information about the wp-trac mailing list