Make WordPress Core

Ticket #2159: paged-comment-editing.patch

File paged-comment-editing.patch, 503 bytes (added by zeo, 19 years ago)

Paged Comment Editing Plugin patch

  • edit-comments-full.php

     
    172172                if( !empty( $_POST['Approve'] ) ) {
    173173                        $wpdb->query("UPDATE $tablecomments SET comment_approved = 1 WHERE comment_ID = $comment");
    174174                } else {
    175                         $wpdb->query("DELETE FROM $tablecomments WHERE comment_ID = $comment");
     175                        wp_set_comment_status($comment, "delete");
    176176                }
    177177         ++$i;
    178178         endif;