Ticket #2159: paged-comment-editing.patch
File paged-comment-editing.patch, 503 bytes (added by , 19 years ago) |
---|
-
edit-comments-full.php
172 172 if( !empty( $_POST['Approve'] ) ) { 173 173 $wpdb->query("UPDATE $tablecomments SET comment_approved = 1 WHERE comment_ID = $comment"); 174 174 } else { 175 $wpdb->query("DELETE FROM $tablecomments WHERE comment_ID = $comment");175 wp_set_comment_status($comment, "delete"); 176 176 } 177 177 ++$i; 178 178 endif;