Changeset 3271
- Timestamp:
- 12/05/05 05:31:27 (3 years ago)
- Files:
-
- trunk/wp-includes/comment-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/comment-functions.php
r3193 r3271 202 202 203 203 $post_id = $comment->comment_post_ID; 204 if ( $post_id )204 if ( $post_id && $comment->comment_approved == 1 ) 205 205 $wpdb->query( "UPDATE $wpdb->posts SET comment_count = comment_count - 1 WHERE ID = '$post_id'" ); 206 206
