diff --git a/wp-admin/includes/list-table.php b/wp-admin/includes/list-table.php index 7551686d43..8a7a728d84 100644 --- a/wp-admin/includes/list-table.php +++ b/wp-admin/includes/list-table.php @@ -698,7 +698,53 @@ class WP_List_Table { * @access protected */ function display_rows() { - die( 'function WP_List_Table::display_rows() must be over-ridden in a sub-class.' ); + foreach ( $this->items as $item ) + $this->single_row( $item ); + } + + /** + * Generates content for a single row of the table + * + * @since 3.1.0 + * @access protected + * + * @param $object $item The current item + */ + function single_row( $item ) { + static $row_class = ''; + $row_class = ( $row_class == '' ? ' class="alternate"' : '' ); + + echo '