Changeset 1039
- Timestamp:
- 02/09/2009 07:35:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r1025 r1039 251 251 252 252 function bp_activity_action_sitewide_feed() { 253 global $bp ;253 global $bp, $wp_query; 254 254 255 255 if ( $bp->current_component != $bp->activity->slug || $bp->current_action != 'feed' || $bp->displayed_user->id ) 256 256 return false; 257 258 $wp_query->is_404 = false; 259 status_header( 200 ); 257 260 258 261 include_once( 'bp-activity/feeds/bp-activity-sitewide-feed.php' ); … … 262 265 263 266 function bp_activity_action_personal_feed() { 264 global $bp ;267 global $bp, $wp_query; 265 268 266 269 if ( $bp->current_component != $bp->activity->slug || !$bp->displayed_user->id || $bp->current_action != 'feed' ) 267 270 return false; 271 272 $wp_query->is_404 = false; 273 status_header( 200 ); 268 274 269 275 include_once( 'bp-activity/feeds/bp-activity-personal-feed.php' ); … … 273 279 274 280 function bp_activity_action_friends_feed() { 275 global $bp ;281 global $bp, $wp_query; 276 282 277 283 if ( $bp->current_component != $bp->activity->slug || !$bp->displayed_user->id || $bp->current_action != 'my-friends' || $bp->action_variables[0] != 'feed' ) 278 284 return false; 279 285 286 $wp_query->is_404 = false; 287 status_header( 200 ); 288 280 289 include_once( 'bp-activity/feeds/bp-activity-friends-feed.php' ); 281 290 die;
Note: See TracChangeset
for help on using the changeset viewer.