Opened 15 years ago
Closed 13 years ago
#2073 closed defect (bug) (fixed)
Wrong redirection on login when redirect_to is defined
Reported by: | francescolaffi | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | major |
Severity: | normal | Version: | |
Component: | Core | Keywords: | reporter-feedback |
Cc: | francescolaffi |
Description
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
Change History (4)
Note: See
TracTickets for help on using
tickets.
Is this still an issue? Glancing at the code, it looks as if this is correct.