WP_List_Table::get_columns does not work for plugins
|Reported by:||ptahdunbar||Owned by:||scribu|
Creating a new table based on the WP_List_Table class does not work as the get_columns method is not being called.
The problem is when WP_List_Table::get_column_info() calls get_column_headers() instead of $this->get_columns() where all the column data is stored.
Moving the filter manage_*_columns from get_column_headers() into WP_List_Table::get_column_info() along with passing $this->get_columns() fixes this issue.
Change History (18)
- Milestone 3.1 deleted
- Resolution set to worksforme
- Status changed from accepted to closed