Fix admin comment reply. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@16244 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e4a21e0527
commit
a97018ab13
|
@ -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