Changeset 3740 for trunk/wp-includes/comment.php
- Timestamp:
- 04/22/2006 12:02:00 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/comment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r3714 r3740 61 61 function get_approved_comments($post_id) { 62 62 global $wpdb; 63 return $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $post_id AND comment_approved = '1' ORDER BY comment_date"); 63 64 $post_id = (int) $post_id; 65 return $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post_id' AND comment_approved = '1' ORDER BY comment_date"); 64 66 } 65 67
Note: See TracChangeset
for help on using the changeset viewer.