[buddypress-trac] [BuddyPress] #2073: Wrong redirection on login when redirect_to is defined

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Feb 25 15:26:20 UTC 2010


#2073: Wrong redirection on login when redirect_to is defined
---------------------------+------------------------------------------------
Reporter:  francescolaffi  |       Owner:     
    Type:  defect          |      Status:  new
Priority:  major           |   Milestone:     
Keywords:  login,redirect  |  
---------------------------+------------------------------------------------
 I found that when in the login request is present the redirect_to address,
 buddypress redirect to homepage if 'wp-admin' is not in the address,
 shuldn't it do the opposite?

 in bp-core.php in the function bp_core_login_redirect i think that this
 line (2106)
 {{{
 if ( !empty( $_REQUEST['redirect_to'] ) && strpos(
 $_REQUEST['redirect_to'], 'wp-admin' ) )
 }}}
 should be
 {{{
 if ( !empty( $_REQUEST['redirect_to'] ) && false === strpos(
 $_REQUEST['redirect_to'], 'wp-admin' ) )
 }}}

 P.S.: sorry if i did something wrong, it's the first time i use a bug
 tracking system

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2073>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list