Changeset 5727
- Timestamp:
- 06/19/2007 05:57:53 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/author-template.php
r5708 r5727 379 379 380 380 $author_count = array(); 381 foreach ((array) $wpdb->get_results("SELECT DISTINCT post_author, COUNT(ID) AS count FROM $wpdb->posts WHERE post_ status = 'publish'GROUP BY post_author") as $row) {381 foreach ((array) $wpdb->get_results("SELECT DISTINCT post_author, COUNT(ID) AS count FROM $wpdb->posts WHERE post_type = 'post' AND " . get_private_posts_cap_sql( 'post' ) . " GROUP BY post_author") as $row) { 382 382 $author_count[$row->post_author] = $row->count; 383 383 }
Note: See TracChangeset
for help on using the changeset viewer.