Opened 16 years ago
Closed 16 years ago
#515 closed defect (bug) (fixed)
Friends Activity Sorting Incorrectly and Returning Oldest Results
Reported by: | cawoodm | Owned by: | |
---|---|---|---|
Milestone: | Priority: | minor | |
Severity: | Version: | 2.0 | |
Component: | Keywords: | ||
Cc: |
Description
bp-activity-classes.php (line 235) should sort by "record_date DESC" and not by "recorded_date". It is currently returning the oldest activity of friends and not the latest.
We're using the latest version of BP.
WRONG:
<code>$activities[$i]activity? = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$table_name} WHERE is_private = 0 ORDER BY date_recorded $limit_sql" ) );</code>
RIGHT:
<code>$activities[$i]activity? = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$table_name} WHERE is_private = 0 ORDER BY date_recorded DESC $limit_sql" ) );</code>
(In [1147]) Fixed #515