Changeset 1992 for trunk/wp-includes/comment-functions.php
- Timestamp:
- 12/22/2004 02:36:26 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/comment-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-functions.php
r1970 r1992 37 37 global $wpdb, $comment_count_cache; 38 38 $comment_id = (int) $comment_id; 39 if ( '' == $comment_count_cache["$id"])39 if (!isset($comment_count_cache[$comment_id])) 40 40 $number = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_post_ID = '$comment_id' AND comment_approved = '1'"); 41 41 else 42 $number = $comment_count_cache[ "$id"];42 $number = $comment_count_cache[$comment_id]; 43 43 return apply_filters('get_comments_number', $number); 44 44 }
Note: See TracChangeset
for help on using the changeset viewer.