Changeset 3104 for trunk/wp-includes/functions.php
- Timestamp:
- 11/16/2005 06:29:36 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r3103 r3104 1307 1307 1308 1308 // Do the same for comment numbers 1309 $comment_counts = $wpdb->get_results("SELECT comment_post_ID, COUNT( comment_ID ) AS ccount 1310 FROM $wpdb->comments 1311 WHERE comment_post_ID IN ($post_id_list) 1312 AND comment_approved = '1' 1313 GROUP BY comment_post_ID"); 1309 $comment_counts = $wpdb->get_results( "SELECT ID as comment_post_ID, comment_count as ccount FROM $wpdb->posts WHERE ID in ($post_id_list)" ); 1314 1310 1315 1311 if ( $comment_counts ) {
Note: See TracChangeset
for help on using the changeset viewer.