Changeset 387
- Timestamp:
- 10/10/2008 06:25:42 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs.php
r386 r387 290 290 $post = get_post($post_id); 291 291 292 /* Don't record this if it's not a post, not published, or password protected */ 293 if ( $post->post_type != 'post' || $post->post_status != 'publish' || $post->post_password != '' ) 294 return false; 295 292 296 /** 293 297 * Check how many recorded posts there are for the user. If we are -
trunk/bp-blogs/bp-blogs-classes.php
r373 r387 204 204 $user_id = $bp['current_userid']; 205 205 206 $post_ids = $wpdb->get_results( $wpdb->prepare( "SELECT post_id, blog_id FROM " . $bp['blogs']['table_name_blog_posts'] . " WHERE user_id = %d ORDER BY date_created ASC", $user_id) );206 $post_ids = $wpdb->get_results( $wpdb->prepare( "SELECT post_id, blog_id FROM " . $bp['blogs']['table_name_blog_posts'] . " WHERE user_id = %d ORDER BY date_created DESC", $user_id) ); 207 207 $total_post_count = $wpdb->get_var( $wpdb->prepare( "SELECT count(post_id) FROM " . $bp['blogs']['table_name_blog_posts'] . " WHERE user_id = %d", $user_id) ); 208 208
Note: See TracChangeset
for help on using the changeset viewer.