[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:48:56 UTC 2010


#15386: WP_List_Table::get_columns does not work for plugins
--------------------------+-------------------------------------------------
 Reporter:  ptahdunbar    |       Owner:  scribu         
     Type:  defect (bug)  |      Status:  accepted       
 Priority:  normal        |   Milestone:  3.1            
Component:  General       |     Version:  3.1            
 Severity:  normal        |    Keywords:  has-patch close
--------------------------+-------------------------------------------------
Changes (by scribu):

  * keywords:  has-patch => has-patch close


Comment:

 The constructor in WP_List_Table adds the get_columns() method as filter
 with priority 0.

 This is for backwards compatibility with older plugins that use the filter
 directly to register columns for new screens.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15386#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list