Changeset 5821 for trunk/wp-admin/includes/comment.php
- Timestamp:
- 07/29/2007 07:56:55 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/comment.php
r5757 r5821 59 59 } 60 60 61 function get_pending_comments_num( $post_id ) { 62 global $wpdb; 63 $post_id = (int) $post_id; 64 $pending = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->comments WHERE comment_post_ID = $post_id AND comment_approved = '0'" ); 65 return $pending; 66 } 67 61 68 ?>
Note: See TracChangeset
for help on using the changeset viewer.