Skip to:
Content

BuddyPress.org

Changeset 2285 for trunk/bp-activity.php


Ignore:
Timestamp:
01/10/2010 11:38:25 AM (16 years ago)
Author:
apeatling
Message:

Updating user_domain() fetching and caching and removing any duplication with userurl().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r2282 r2285  
    249249    if ( $activity->component_name == $bp->groups->id ) {
    250250        if ( $activity->user_id )
    251             $redirect = bp_core_get_userurl( $activity->user_id ) . $bp->activity->slug . '/' . $activity->id;
     251            $redirect = bp_core_get_user_domain( $activity->user_id, $activity->user_nicename, $activity->user_login ) . $bp->activity->slug . '/' . $activity->id;
    252252        else {
    253253            if ( $group = groups_get_group( array( 'group_id' => $activity->item_id ) ) )
     
    255255        }
    256256    } else
    257         $redirect = bp_core_get_userurl( $activity->user_id ) . $bp->activity->slug . '/' . $activity->id;
     257        $redirect = bp_core_get_user_domain( $activity->user_id, $activity->user_nicename, $activity->user_login ) . $bp->activity->slug . '/' . $activity->id;
    258258
    259259    if ( !$redirect )
Note: See TracChangeset for help on using the changeset viewer.