Changeset 2356 for trunk/bp-activity.php
- Timestamp:
- 01/19/2010 02:06:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r2344 r2356 370 370 add_action( 'wp', 'bp_activity_action_mentions_feed', 3 ); 371 371 372 function bp_activity_action_favorites_feed() { 373 global $bp, $wp_query; 374 375 if ( $bp->current_component != $bp->activity->slug || !$bp->displayed_user->id || $bp->current_action != 'favorites' || $bp->action_variables[0] != 'feed' ) 376 return false; 377 378 $wp_query->is_404 = false; 379 status_header( 200 ); 380 381 include_once( 'bp-activity/feeds/bp-activity-favorites-feed.php' ); 382 die; 383 } 384 add_action( 'wp', 'bp_activity_action_favorites_feed', 3 ); 372 385 373 386 /******************************************************************************** … … 691 704 692 705 function bp_activity_get_user_favorites( $user_id ) { 693 global $bp;694 695 706 $my_favs = maybe_unserialize( get_usermeta( $user_id, 'bp_favorite_activities' ) ); 696 707 $existing_favs = bp_activity_get_specific( array( 'activity_ids' => $my_favs ) );
Note: See TracChangeset
for help on using the changeset viewer.