Changeset 3271
- Timestamp:
- 12/05/2005 05:31:27 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.