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:
parent
db30a85e35
commit
a927a1665c
|
@ -715,7 +715,19 @@ class WP_List_Table {
|
||||||
$row_class = ( $row_class == '' ? ' class="alternate"' : '' );
|
$row_class = ( $row_class == '' ? ' class="alternate"' : '' );
|
||||||
|
|
||||||
echo '<tr' . $row_class . '>';
|
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();
|
list( $columns, $hidden ) = $this->get_column_headers();
|
||||||
|
|
||||||
foreach ( $columns as $column_name => $column_display_name ) {
|
foreach ( $columns as $column_name => $column_display_name ) {
|
||||||
|
@ -743,8 +755,6 @@ class WP_List_Table {
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</tr>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue