Skip to:
Content

BuddyPress.org

Changeset 2815


Ignore:
Timestamp:
03/08/2010 02:02:37 PM (16 years ago)
Author:
apeatling
Message:

Further fix for #2104

Location:
branches/1.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-activity.php

    r2814 r2815  
    252252            bp_core_redirect( $bp->loggedin_user->domain );
    253253        else
    254             bp_core_redirect( $bp->root_domain );
     254            bp_core_redirect( site_url( 'wp-login.php?redirect_to=' . clean_url( $bp->root_domain . '/' . $bp->activity->slug . '/p/' . $bp->current_action ) ) );
    255255    }
    256256
  • branches/1.2/bp-core.php

    r2794 r2815  
    21042104        return $redirect_to;
    21052105
    2106     if ( !empty( $_REQUEST['redirect_to'] ) && strpos( $_REQUEST['redirect_to'], 'wp-admin' ) )
     2106    if ( !empty( $_REQUEST['redirect_to'] ) || strpos( $_REQUEST['redirect_to'], 'wp-admin' ) )
    21072107        return $redirect_to;
    21082108
Note: See TracChangeset for help on using the changeset viewer.