From a927a1665cfe0330e158d65bc82b547ed8382ef5 Mon Sep 17 00:00:00 2001 From: scribu Date: Sat, 18 Sep 2010 17:21:32 +0000 Subject: [PATCH] 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 --- wp-admin/includes/list-table.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/list-table.php b/wp-admin/includes/list-table.php index 8a7a728d84..5d4e9e919e 100644 --- a/wp-admin/includes/list-table.php +++ b/wp-admin/includes/list-table.php @@ -715,7 +715,19 @@ class WP_List_Table { $row_class = ( $row_class == '' ? ' class="alternate"' : '' ); echo ''; + echo $this->single_row_columns( $item ); + echo ''; + } + /** + * 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 ""; } } - - echo ''; } /**