Introduce get_list_table(). See #14579

git-svn-id: http://svn.automattic.com/wordpress/trunk@15528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu
2010-08-25 00:51:44 +00:00
parent 385dbb646d
commit 75219a5110
17 changed files with 46 additions and 60 deletions

View File

@@ -293,8 +293,7 @@ function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single',
return;
}
require_once( './includes/default-list-tables.php' );
$wp_list_table = new WP_Comments_Table( 'reply' );
$wp_list_table = get_list_table('comments');
$columns = $wp_list_table->get_column_headers();
$hidden = array_intersect( array_keys( $columns ), array_filter( $wp_list_table->get_hidden_columns() ) );