Fix admin comment reply. See #14579

git-svn-id: http://svn.automattic.com/wordpress/trunk@16244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-11-08 23:07:37 +00:00
parent f444adeba7
commit 266a71eb7d
2 changed files with 7 additions and 1 deletions

View File

@ -640,6 +640,8 @@ case 'get-comments' :
case 'replyto-comment' :
check_ajax_referer( $action, '_ajax_nonce-replyto-comment' );
set_current_screen( 'edit-comments' );
$wp_list_table = get_list_table('WP_Comments_List_Table');
$wp_list_table->checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0;

View File

@ -721,7 +721,11 @@ function print_column_headers($screen, $id = true) {
$wp_list_table->print_column_headers($id);
}
// Helper class to be used only by deprecated functions
/**
* Helper class to be used only by deprecated functions
*
* @since 3.1.0
*/
class _WP_List_Table_Compat extends WP_List_Table {
var $_screen;
var $_columns;