Changeset 12399
- Timestamp:
- 12/15/2009 04:33:16 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/admin-ajax.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r12394 r12399 163 163 die( (string) time() ); 164 164 165 $post_id = 0; 165 166 $status = 'total_comments'; // What type of comment count are we looking for? 166 167 $parsed = parse_url( $url ); … … 169 170 if ( !empty( $query_vars['comment_status'] ) ) 170 171 $status = $query_vars['comment_status']; 171 } 172 173 $comment_count = wp_count_comments(); 172 if ( !empty( $query_vars['p'] ) ) 173 $post_id = (int) $query_vars['p']; 174 } 175 176 $comment_count = wp_count_comments($post_id); 174 177 $time = time(); // The time since the last comment count 175 178
Note: See TracChangeset
for help on using the changeset viewer.