#10585 closed defect (bug) (invalid)
manage_users_custom_column filter not working
Reported by: | martinv5 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
Problem is in
wp-admin/includes/template.php on line 1971
There's a blank string as an argument instead of $column_name
apply_filters('manage_users_custom_column', '', $column_name, $user_object->ID);
If you just remove the empty parameter passed to the function and put $column_name there, it will start working and you will be able to add new columns to the Users management page with plugins.
Let's get this fixed. I'm attaching a fixed template.php from 2.8.3 from the main WP site.
Attachments (1)
Change History (5)
#1
@
15 years ago
- Keywords reporter-feedback added; user mamagement manage_users_custom_column removed
Those lines look identical.
And that core function works as expected AFAIK, The same setup is used on all the pages.
You're filtering a empty string, simple as that.. The column is empty, you return a non-empty value to append it to the row..
#2
@
15 years ago
- Milestone 2.8.4 deleted
- Resolution set to invalid
- Status changed from new to closed
That filter is written correctly in trunk and branches/2.8
The filter passes an empty string which is the default value which will be output for the row unless a plugin returns something different.
The $column_name argument is passed so that plugins know whether or not it is there column being requested - which they have added using the manage_users_columns filter (in get_column_headers() ).
template.php with this bug fixed