Skip to:
Content

BuddyPress.org

Changeset 2650


Ignore:
Timestamp:
02/10/2010 04:50:27 PM (14 years ago)
Author:
apeatling
Message:

Don't modify the login redirect when the user requests wp-admin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r2648 r2650  
    20502050 * @package BuddyPress Core
    20512051 */
    2052 function bp_core_login_redirect() {
    2053     global $bp;
     2052function bp_core_login_redirect( $redirect_to ) {
     2053    global $bp;
     2054
     2055    if ( strpos( $redirect_to, 'wp-admin' ) )
     2056        return $redirect_to;
    20542057
    20552058    if ( false === strpos( wp_get_referer(), 'wp-login.php' ) && false === strpos( wp_get_referer(), 'activate' ) && empty( $_REQUEST['nr'] ) )
Note: See TracChangeset for help on using the changeset viewer.