Ticket #3122: 3122.patch
File 3122.patch, 949 bytes (added by , 14 years ago) |
---|
-
bp-activity/bp-activity-screens.php
function bp_activity_screen_single_activity_permalink() { 74 74 // No displayed user or not viewing activity component 75 75 if ( !bp_is_activity_component() ) 76 76 return false; 77 78 // No current action or not a specific activity item 79 if ( !bp_current_action() || !bp_is_current_action( 'p' ) || !isset( $bp->action_variables['0'] ) ) 80 return false; 81 82 // RE-jig the action and action variables 83 $bp->current_action = $bp->action_variables['0']; 84 unset( $bp->action_variables['0'] ); 85 77 78 if ( empty( $bp->current_action ) || !is_numeric( $bp->current_action ) ) 79 return false; 80 86 81 // Get the activity details 87 82 $activity = bp_activity_get_specific( array( 'activity_ids' => bp_current_action() ) ); 88 83