Changeset 6342 for trunk/bp-activity/bp-activity-classes.php
- Timestamp:
- 09/18/2012 06:03:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r6331 r6342 51 51 $this->mptt_right = $row->mptt_right; 52 52 $this->is_spam = $row->is_spam; 53 53 54 54 bp_activity_update_meta_cache( $this->id ); 55 55 } … … 208 208 // Define the preferred order for indexes 209 209 $indexes = apply_filters( 'bp_activity_preferred_index_order', array( 'user_id', 'item_id', 'secondary_item_id', 'date_recorded', 'component', 'type', 'hide_sitewide', 'is_spam' ) ); 210 210 211 211 foreach( $indexes as $key => $index ) { 212 212 if ( false !== strpos( $where_sql, $index ) ) { … … 217 217 218 218 if ( !empty( $the_index ) ) { 219 $index_hint_sql = $wpdb->prepare( "USE INDEX ({$the_index})" ); 219 $index_hint_sql = $wpdb->prepare( "USE INDEX ({$the_index})" ); 220 220 } else { 221 221 $index_hint_sql = ''; … … 262 262 } 263 263 } 264 264 265 265 // Get activity meta 266 266 $activity_ids = array(); … … 268 268 $activity_ids[] = $activity->id; 269 269 } 270 270 271 271 if ( !empty( $activity_ids ) ) { 272 272 bp_activity_update_meta_cache( $activity_ids ); … … 670 670 } 671 671 } 672 673 ?>
Note: See TracChangeset
for help on using the changeset viewer.