Extra single_row_columns() out of single_row() for increased flexibility. See #14579

git-svn-id: http://svn.automattic.com/wordpress/trunk@15629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-09-18 17:21:32 +00:00
parent db30a85e35
commit a927a1665c
1 changed files with 12 additions and 2 deletions

View File

@ -715,7 +715,19 @@ class WP_List_Table {
$row_class = ( $row_class == '' ? ' class="alternate"' : '' );
echo '<tr' . $row_class . '>';
echo $this->single_row_columns( $item );
echo '</tr>';
}
/**
* Generates the columns for a single row of the table
*
* @since 3.1.0
* @access protected
*
* @param $object $item The current item
*/
function single_row_columns( $item ) {
list( $columns, $hidden ) = $this->get_column_headers();
foreach ( $columns as $column_name => $column_display_name ) {
@ -743,8 +755,6 @@ class WP_List_Table {
echo "</td>";
}
}
echo '</tr>';
}
/**