[wp-trac] [WordPress Trac] #29881: Better abstraction for WP_*_List_Table so they are easier to subclass

WordPress Trac noreply at wordpress.org
Tue Jul 14 17:46:15 UTC 2015


#29881: Better abstraction for WP_*_List_Table so they are easier to subclass
----------------------------+-----------------------------
 Reporter:  joehoyle        |       Owner:  wonderboymusic
     Type:  task (blessed)  |      Status:  closed
 Priority:  normal          |   Milestone:  4.3
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:  administration
----------------------------+-----------------------------
Changes (by wonderboymusic):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"33270"]:
 {{{
 #!CommitTicketReference repository="" revision="33270"
 List Tables:
 * In `->handle_row_actions()`, bail immediately if `$primary` and
 `$column_name` do not match. Saves us a nesting level and avoids declaring
 code that is unusable.
 * In `WP_List_Table::single_row_columns()`, allow `_column_{$name}` to be
 called dynamically by core to avoid having to override the entirety of
 `->single_row_columns()` in `WP_MS_Users_List_Table` and
 `WP_Posts_List_Table`
 * In `WP_MS_Sites_List_Table`, `id` is not a column.

 Props wonderboymusic, paulwilde.
 Fixes #29881.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29881#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list