Ticket #9003: 9003.diff
File 9003.diff, 602 bytes (added by , 15 years ago) |
---|
-
wp-includes/comment.php
739 739 if ( ! $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->comments WHERE comment_ID = %d LIMIT 1", $comment_id) ) ) 740 740 return false; 741 741 742 $wpdb->update($wpdb->comments, array('comment_parent' => $comment->comment_parent), array('comment_parent' => $comment_id)); 743 742 744 $post_id = $comment->comment_post_ID; 743 745 if ( $post_id && $comment->comment_approved == 1 ) 744 746 wp_update_comment_count($post_id);