[wp-trac] [WordPress Trac] #15386: WP_List_Table::get_columns does not work for plugins
WordPress Trac
wp-trac at lists.automattic.com
Thu Nov 11 14:42:29 UTC 2010
#15386: WP_List_Table::get_columns does not work for plugins
--------------------------+-------------------------------------------------
Reporter: ptahdunbar | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15386>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list