[wp-trac] [WordPress Trac] #25408: Ability to specify that a list table column is "primary"

WordPress Trac noreply at wordpress.org
Tue Jun 2 14:12:03 UTC 2015

#25408: Ability to specify that a list table column is "primary"
 Reporter:  helen                              |       Owner:  stephdau
     Type:  enhancement                        |      Status:  assigned
 Priority:  normal                             |   Milestone:  4.3
Component:  Administration                     |     Version:
 Severity:  normal                             |  Resolution:
 Keywords:  has-patch needs-testing 4.1-early  |     Focuses:

Comment (by stephdau):

 `WP_List_Table::get_primary_column_name()` is the method with the filter.
 Extending classes usually implement `::get_default_primary_column_name()`,
 which the above uses, so their value is filtered.
 For extending classes where we do not want the column to be alterable,
 they should simply implement `::get_primary_column_name()` instead.

 [attachment:25408.18.diff] implements the above proposed solution for:
  * plugin list table (used for both single and multisite)
  * multisite themes list (single doesn't implement listtables per se).

Ticket URL: <https://core.trac.wordpress.org/ticket/25408#comment:55>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list