WordPress.org

Make WordPress Core

Ticket #18340: 18340.patch

File 18340.patch, 820 bytes (added by ocean90, 3 years ago)
  • wp-admin/admin-ajax.php

     
    727727        edit_comment(); 
    728728 
    729729        $position = ( isset($_POST['position']) && (int) $_POST['position']) ? (int) $_POST['position'] : '-1'; 
    730         $comments_status = isset($_POST['comments_listing']) ? $_POST['comments_listing'] : ''; 
     730        $GLOBALS['comment_status'] = isset( $_POST['comments_listing'] ) ? $_POST['comments_listing'] : 'all'; 
     731        $checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0; 
    731732 
    732         $checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0; 
    733733        $wp_list_table = _get_list_table( $checkbox ? 'WP_Comments_List_Table' : 'WP_Post_Comments_List_Table' ); 
    734734 
    735735        ob_start();