Changeset 5072 for trunk/bp-activity/bp-activity-actions.php
- Timestamp:
- 08/31/2011 01:12:04 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-actions.php
r4961 r5072 242 242 global $bp, $wp_query; 243 243 244 if ( !bp_is_ current_component( 'activity') || !bp_is_current_action( 'feed' ) || bp_is_user() || !empty( $bp->groups->current_group ) )244 if ( !bp_is_activity_component() || !bp_is_current_action( 'feed' ) || bp_is_user() || !empty( $bp->groups->current_group ) ) 245 245 return false; 246 246 … … 256 256 global $bp, $wp_query; 257 257 258 if ( !bp_is_ current_component( 'activity' ) || !bp_is_user() || !bp_is_current_action( 'feed' ) )258 if ( !bp_is_user_activity() || !bp_is_current_action( 'feed' ) ) 259 259 return false; 260 260 … … 270 270 global $bp, $wp_query; 271 271 272 if ( !bp_is_active( 'friends' ) || !bp_is_ current_component( 'activity' ) || !bp_is_user() || !bp_is_current_action( bp_get_friends_slug() ) || !bp_is_action_variable( 'feed', 0 ) )272 if ( !bp_is_active( 'friends' ) || !bp_is_user_activity() || !bp_is_current_action( bp_get_friends_slug() ) || !bp_is_action_variable( 'feed', 0 ) ) 273 273 return false; 274 274 … … 284 284 global $bp, $wp_query; 285 285 286 if ( !bp_is_active( 'groups' ) || !bp_is_ current_component( 'activity' ) || !bp_is_user() || !bp_is_current_action( bp_get_groups_slug() ) || !bp_is_action_variable( 'feed', 0 ) )286 if ( !bp_is_active( 'groups' ) || !bp_is_user_activity() || !bp_is_current_action( bp_get_groups_slug() ) || !bp_is_action_variable( 'feed', 0 ) ) 287 287 return false; 288 288 … … 298 298 global $bp, $wp_query; 299 299 300 if ( !bp_is_ current_component( 'activity' ) || !bp_is_user() || !bp_is_current_action( 'mentions' ) || !bp_is_action_variable( 'feed', 0 ) )300 if ( !bp_is_user_activity() || !bp_is_current_action( 'mentions' ) || !bp_is_action_variable( 'feed', 0 ) ) 301 301 return false; 302 302 … … 312 312 global $bp, $wp_query; 313 313 314 if ( !bp_is_ current_component( 'activity' ) || !bp_is_user() || !bp_is_current_action( 'favorites' ) || !bp_is_action_variable( 'feed', 0 ) )314 if ( !bp_is_user_activity() || !bp_is_current_action( 'favorites' ) || !bp_is_action_variable( 'feed', 0 ) ) 315 315 return false; 316 316
Note: See TracChangeset
for help on using the changeset viewer.