[wp-trac] [WordPress Trac] #14724: manage_$(taxonomy)_custom_column limits plugin interaction
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 29 03:35:26 UTC 2010
#14724: manage_$(taxonomy)_custom_column limits plugin interaction
--------------------------+-------------------------------------------------
Reporter: nerrad | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Having trouble coming up with a descriptive title.
Here's the problem:
I have one plugin that creates a custom taxonomy ('series') and I can
populate the new column on the 'edit-tags?taxonomy=series' page fine
(named 'icon'). For this plugin I use the 'manage_series_custom_column'
filter to add in the content for that column. For example:
{{{
add_filter('manage_series_custom_column','my_first_plugin_column',1,3)
function my_first_plugin_column($unknown, $column_name, $id) {
if ($column_name == 'icon') {
$data = get_some_data();
$return $data;
}
}
}}}
This works as expected and I see the column 'Series' with it's content.
Here's the problem. I've created an "addon" for my original plugin that
also hooks into the table on the 'edit-tags.php?taxonomy=series' page.
I've successfully created the "group" column and it sets up the column
correctly. Then I hook into the custom column filter like so:
{{{
add_filter('manage_series_custom_column','my_second_plugin_column',1,3)
function my_second_plugin_column($unknown, $column_name, $id) {
if ( $column_name == 'group' ) {
$data = get_some_data();
$return $data;
}
}
}}}
The PROBLEM is that the data for the second plugin DOES NOT display.
Funny thing is when I do a var_dump on the data it is there. But somehow
it's getting lost in the apply_filter() routine. I've also tried playing
around with the priority. Whichever custom_column is given the higher
priority is the one that will display and the other one won't.
Am I missing something?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14724>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list