Changeset 3192
- Timestamp:
- 11/22/05 03:40:32 (3 years ago)
- Files:
-
- trunk/wp-admin/upgrade-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/upgrade-functions.php
r3183 r3192 303 303 304 304 // populate comment_count field of posts table 305 $comments = $wpdb->get_results( "SELECT comment_post_ID, COUNT(*) as c FROM $wpdb->comments GROUP BY comment_post_ID" );305 $comments = $wpdb->get_results( "SELECT comment_post_ID, COUNT(*) as c FROM $wpdb->comments WHERE comment_approved = '1' GROUP BY comment_post_ID" ); 306 306 if( is_array( $comments ) ) { 307 307 foreach ($comments as $comment) {
