Changeset 2526 for trunk/bp-activity/bp-activity-classes.php
- Timestamp:
- 02/01/2010 03:52:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r2502 r2526 334 334 global $wpdb, $bp; 335 335 336 /* Start with an empty $stack */337 $stack = array();338 339 /* Retrieve all descendants of the $root node */340 341 336 /* Select the user's fullname with the query so we don't have to fetch it for each comment */ 342 337 if ( function_exists( 'xprofile_install' ) ) { … … 346 341 } 347 342 343 /* Retrieve all descendants of the $root node */ 348 344 $descendants = $wpdb->get_results( $wpdb->prepare( "SELECT a.*, u.user_email, u.user_nicename, u.user_login, u.display_name{$fullname_select} FROM {$bp->activity->table_name} a, {$wpdb->users} u{$fullname_from} WHERE u.ID = a.user_id {$fullname_where} AND a.type = 'activity_comment' AND a.item_id = %d AND a.mptt_left BETWEEN %d AND %d ORDER BY a.date_recorded ASC", $activity_id, $left, $right ) ); 349 345
Note: See TracChangeset
for help on using the changeset viewer.