Blank page after login
|Reported by:||Pressography||Owned by:|
|Component:||Component - Core||Keywords:||dev-feedback|
When I log into my blog (MU 188.8.131.52) w/ BP 1.2 activated, and no redirect_to value, I often get a blank page instead of into the wp-admin area.
When I deactivate BP, everything works as it's supposed to. I tracked the problem down to this section of code in the bp_core_login_redirect function:
if ( false === strpos( wp_get_referer(), 'wp-login.php' ) && false === strpos( wp_get_referer(), 'activate' ) && empty( $_REQUESTnr? ) )
The wp_get_referrer() function can return false, which it is doing in this case, and that's why the blank page shows up.
I suggest adding some logic here to check if wp_get_referrer() is false, and if it is, simply redirect to the root domain. This could probably be easily added to the if statement in the first line that I copied into this ticket.
Change History (10)
comment:1 @cnorris23 — 5 years ago
- Keywords reporter-feedback added
- Priority changed from major to minor
comment:6 @Pressography — 5 years ago
- Resolution set to worksforme
- Status changed from new to closed
- Component set to Core
- Keywords dev-feedback added; reporter-feedback removed
- Resolution worksforme deleted
- Severity set to normal
- Status changed from closed to reopened
- Version set to 1.2