[wp-trac] [WordPress Trac] #29881: Better abstraction for WP_Posts_List_Table so it's easier to subclass

WordPress Trac noreply at wordpress.org
Tue Oct 7 20:28:57 UTC 2014


#29881: Better abstraction for WP_Posts_List_Table so it's easier to subclass
----------------------------+-----------------------------
 Reporter:  joehoyle        |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  4.1
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  administration
----------------------------+-----------------------------
Changes (by nacin):

 * milestone:  Awaiting Review => 4.1


Comment:

 I absolutely love this.

 Sadly the list tables were all implemented in slightly different ways,
 which is probably why we all hate them so much. But there *is* something
 to salvage here, and single_row_columns() can help with that. It's a nice
 abstraction we should be using everywhere.

 column_taxonomy() should probably be protected. Also, it should probably
 have a name other than column_ because it could otherwise be invoked by
 single_row_columns().

 I see no back compat concerns here, either.

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


More information about the wp-trac mailing list