Skip to:
Content

BuddyPress.org

Changeset 4263


Ignore:
Timestamp:
04/23/2011 07:14:09 PM (13 years ago)
Author:
boonebgorges
Message:

Fixes single activity permalinks. Fixes #3122

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-screens.php

    r4088 r4263  
    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() ) );
Note: See TracChangeset for help on using the changeset viewer.