public static function action_undo() { global $aecomments; $postID = AECAjax::get_post_id(); $commentID = AECAjax::get_comment_id(); //todo nonce $comment = $aecomments->get_admin_option('undo'); $response = AECAjax::save_comment($commentID, $postID, $comment); $response = apply_filters('wp_ajax_comments_save_comment', $response, $comment, $_POST); die(json_encode($response)); exit; }