[wp-trac] [WordPress Trac] #21222: Unable to add columns to the Terms List table
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 13 17:33:27 UTC 2012
#21222: Unable to add columns to the Terms List table
--------------------------+-----------------------
Reporter: dglingren | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Taxonomy | Version: 3.4.1
Severity: normal | Resolution:
Keywords: |
--------------------------+-----------------------
Changes (by michelwppi):
* cc: contact@… (added)
* status: closed => reopened
* resolution: invalid =>
Comment:
To add the columns this filter ''manage_edit-category_columns'' is ok (add
columns and title)
BUT
to fill each line of terms the filter
"manage_{$screen->taxonomy}_custom_column" must not be a filter (if used
only one filter can be used. It must be an action like in line 671 of wp-
posts-list-table
(if used only first filter is possible as returned content and the other
must echo the row ;-)
{{{
do_action( "manage_{$post->post_type}_posts_custom_column", $column_name,
$post->ID );
}}}
so in line 318 solution fixe is
{{{
do_action( "manage_{$screen->taxonomy}_custom_column", '', $column_name,
$tag->term_id );
}}}
Hope that help to understand our tests
M.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21222#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list