Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/10/2008 06:25:42 AM (16 years ago)
Author:
apeatling
Message:

Fixed #94 and changed order of users blog posts to most recent at the top.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-classes.php

    r373 r387  
    204204            $user_id = $bp['current_userid'];
    205205           
    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) );
    207207        $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) );
    208208       
Note: See TracChangeset for help on using the changeset viewer.