Skip to:
Content

BuddyPress.org

Ticket #3122: 3122.patch

File 3122.patch, 949 bytes (added by boonebgorges, 14 years ago)
  • bp-activity/bp-activity-screens.php

    function bp_activity_screen_single_activity_permalink() { 
    7474        // No displayed user or not viewing activity component
    7575        if ( !bp_is_activity_component() )
    7676                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       
    8681        // Get the activity details
    8782        $activity = bp_activity_get_specific( array( 'activity_ids' => bp_current_action() ) );
    8883