From 266a71eb7d112cc5d38b5586eb4073885f67eadf Mon Sep 17 00:00:00 2001 From: scribu Date: Mon, 8 Nov 2010 23:07:37 +0000 Subject: [PATCH] Fix admin comment reply. See #14579 git-svn-id: http://svn.automattic.com/wordpress/trunk@16244 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-ajax.php | 2 ++ wp-admin/includes/deprecated.php | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index 614812a2c..e47296ec9 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -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; diff --git a/wp-admin/includes/deprecated.php b/wp-admin/includes/deprecated.php index cc421e4a6..49597cc5b 100644 --- a/wp-admin/includes/deprecated.php +++ b/wp-admin/includes/deprecated.php @@ -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;