Changeset 4145 for trunk/bp-activity/bp-activity-actions.php
- Timestamp:
- 03/23/2011 07:01:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-actions.php
r4055 r4145 219 219 function bp_activity_action_sitewide_feed() { 220 220 global $bp, $wp_query; 221 222 if ( ( $bp->activity->slug != bp_current_component() ) || !bp_is_current_action( 'feed' ) || bp_is_user() || isset( $bp->groups->current_group ) )223 return false; 224 225 $wp_query->is_404 = false; 226 status_header( 200 ); 227 228 include_once( ' bp-activity/feeds/bp-activity-sitewide-feed.php' );221 222 if ( !bp_is_current_component( 'activity' ) || !bp_is_current_action( 'feed' ) || bp_is_user() || !empty( $bp->groups->current_group ) ) 223 return false; 224 225 $wp_query->is_404 = false; 226 status_header( 200 ); 227 228 include_once( 'feeds/bp-activity-sitewide-feed.php' ); 229 229 die; 230 230 } … … 234 234 global $bp, $wp_query; 235 235 236 if ( ( $bp->activity->slug != bp_current_component()) || !bp_is_user() || !bp_is_current_action( 'feed' ) )237 return false; 238 239 $wp_query->is_404 = false; 240 status_header( 200 ); 241 242 include_once( ' bp-activity/feeds/bp-activity-personal-feed.php' );236 if ( !bp_is_current_component( 'activity' ) || !bp_is_user() || !bp_is_current_action( 'feed' ) ) 237 return false; 238 239 $wp_query->is_404 = false; 240 status_header( 200 ); 241 242 include_once( 'feeds/bp-activity-personal-feed.php' ); 243 243 die; 244 244 } … … 248 248 global $bp, $wp_query; 249 249 250 if ( !bp_is_active( 'friends' ) || $bp->activity->slug != bp_current_component() || !bp_is_user() || !bp_is_current_action( $bp->friends->slug ) || !isset( $bp->action_variables[0] ) || $bp->action_variables[0] != 'feed' )251 return false; 252 253 $wp_query->is_404 = false; 254 status_header( 200 ); 255 256 include_once( ' bp-activity/feeds/bp-activity-friends-feed.php' );250 if ( !bp_is_active( 'friends' ) || !bp_is_current_component( 'activity' ) || !bp_is_user() || !bp_is_current_action( $bp->friends->slug ) || !isset( $bp->action_variables[0] ) || $bp->action_variables[0] != 'feed' ) 251 return false; 252 253 $wp_query->is_404 = false; 254 status_header( 200 ); 255 256 include_once( 'feeds/bp-activity-friends-feed.php' ); 257 257 die; 258 258 } … … 262 262 global $bp, $wp_query; 263 263 264 if ( !bp_is_active( 'groups' ) || $bp->activity->slug != bp_current_component() || !bp_is_user() || !bp_is_current_action( $bp->groups->slug ) || !isset( $bp->action_variables[0] ) || $bp->action_variables[0] != 'feed' )265 return false; 266 267 $wp_query->is_404 = false; 268 status_header( 200 ); 269 270 include_once( ' bp-activity/feeds/bp-activity-mygroups-feed.php' );264 if ( !bp_is_active( 'groups' ) || !bp_is_current_component( 'activity' ) || !bp_is_user() || !bp_is_current_action( $bp->groups->slug ) || !isset( $bp->action_variables[0] ) || $bp->action_variables[0] != 'feed' ) 265 return false; 266 267 $wp_query->is_404 = false; 268 status_header( 200 ); 269 270 include_once( 'feeds/bp-activity-mygroups-feed.php' ); 271 271 die; 272 272 } … … 276 276 global $bp, $wp_query; 277 277 278 if ( ( $bp->activity->slug != bp_current_component()) || !bp_is_user() || !bp_is_current_action( 'mentions' ) || !isset( $bp->action_variables[0] ) || $bp->action_variables[0] != 'feed' )279 return false; 280 281 $wp_query->is_404 = false; 282 status_header( 200 ); 283 284 include_once( ' bp-activity/feeds/bp-activity-mentions-feed.php' );278 if ( !bp_is_current_component( 'activity' ) || !bp_is_user() || !bp_is_current_action( 'mentions' ) || !isset( $bp->action_variables[0] ) || $bp->action_variables[0] != 'feed' ) 279 return false; 280 281 $wp_query->is_404 = false; 282 status_header( 200 ); 283 284 include_once( 'feeds/bp-activity-mentions-feed.php' ); 285 285 die; 286 286 } … … 290 290 global $bp, $wp_query; 291 291 292 if ( ( $bp->activity->slug != bp_current_component()) || !bp_is_user() || !bp_is_current_action( 'favorites' ) || !isset( $bp->action_variables[0] ) || $bp->action_variables[0] != 'feed' )293 return false; 294 295 $wp_query->is_404 = false; 296 status_header( 200 ); 297 298 include_once( ' bp-activity/feeds/bp-activity-favorites-feed.php' );292 if ( !bp_is_current_component( 'activity' ) || !bp_is_user() || !bp_is_current_action( 'favorites' ) || !isset( $bp->action_variables[0] ) || $bp->action_variables[0] != 'feed' ) 293 return false; 294 295 $wp_query->is_404 = false; 296 status_header( 200 ); 297 298 include_once( 'feeds/bp-activity-favorites-feed.php' ); 299 299 die; 300 300 }
Note: See TracChangeset
for help on using the changeset viewer.