Changeset 5684 for trunk/bp-activity/bp-activity-classes.php
- Timestamp:
- 02/09/2012 10:10:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r5573 r5684 374 374 * Append activity comments to their associated activity items 375 375 * 376 * @global object $bp Global BuddyPress settings object377 376 * @global wpdb $wpdb WordPress database object 378 377 * @param array $activities … … 382 381 */ 383 382 function append_comments( $activities, $spam = 'ham_only' ) { 384 global $ bp, $wpdb;383 global $wpdb; 385 384 386 385 $activity_comments = array(); … … 498 497 499 498 function get_sitewide_items_for_feed( $limit = 35 ) { 500 global $wpdb, $bp; 501 502 $activities = bp_activity_get_sitewide( array( 'max' => $limit ) ); 499 global $bp; 500 501 $activities = bp_activity_get_sitewide( array( 'max' => $limit ) ); 502 $activity_feed = array(); 503 503 504 504 for ( $i = 0, $count = count( $activities ); $i < $count; ++$i ) { 505 $title = explode( '<span', $activities[$i]['content'] ); 506 507 $activity_feed[$i]['title'] = trim( strip_tags( $title[0] ) ); 508 $activity_feed[$i]['link'] = $activities[$i]['primary_link']; 505 $title = explode( '<span', $activities[$i]['content'] ); 506 $activity_feed[$i]['title'] = trim( strip_tags( $title[0] ) ); 507 $activity_feed[$i]['link'] = $activities[$i]['primary_link']; 509 508 $activity_feed[$i]['description'] = @sprintf( $activities[$i]['content'], '' ); 510 $activity_feed[$i]['pubdate'] = $activities[$i]['date_recorded'];509 $activity_feed[$i]['pubdate'] = $activities[$i]['date_recorded']; 511 510 } 512 511 … … 539 538 540 539 function get_filter_sql( $filter_array ) { 541 global $wpdb; 540 541 $filter_sql = array(); 542 542 543 543 if ( !empty( $filter_array['user_id'] ) ) { … … 571 571 } 572 572 573 if ( empty( $filter_sql) )573 if ( empty( $filter_sql ) ) 574 574 return false; 575 575
Note: See TracChangeset
for help on using the changeset viewer.