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:
parent
f444adeba7
commit
266a71eb7d
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue