Opened 16 years ago
Closed 15 years ago
#2073 closed defect (bug) (fixed)
Wrong redirection on login when redirect_to is defined
| Reported by: | francescolaffi | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.5 |
| Component: | Core | Version: | |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Is this still an issue? Glancing at the code, it looks as if this is correct.