Skip to content

Commit

Permalink
Override ->single_row_columns() in WP_Posts_List_Table.
Browse files Browse the repository at this point in the history
Break apart the giant `switch` statement in `->single_row()` into `column_{$column_name}` methods.
To maintain the `->single_row_columns( $item )` interface, add a property, `$current_level`, to allow access to `$level`.

This list table class is now easier to subclass.

Props joehoyle, wonderboymusic.
See #29881.

Built from https://develop.svn.wordpress.org/trunk@32740


git-svn-id: http://core.svn.wordpress.org/trunk@32711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
staylor committed Jun 12, 2015
1 parent d0aa8e4 commit 3f4cadf
Show file tree
Hide file tree
Showing 2 changed files with 306 additions and 240 deletions.

0 comments on commit 3f4cadf

Please sign in to comment.