Subdir front-end Toolbar bug on first login
|Reported by:||DrewAPicture||Owned by:|
|Severity:||normal||Keywords:||dev-feedback has-patch needs-testing|
In an obscure set of circumstances, I encountered a small bug where the Toolbar doesn't display on the front-end of a subdirectory install on the first login where the site URL points to the root domain.
show_admin_bar_front is rightly set to true both on first and second+ logins, but the Toolbar doesn't display on the front-end. The js isn't even being loaded.
I can reproduce this all the way back to 3.3.
- Install a fresh copy of WordPress in a subdirectory.
- Change site url to point to the main domain.
- Visit the front-end, observe the Toolbar isn't displayed.
- Login again.
- Re-visit the front-end, observe the Toolbar now displays as expected.
I'm unable to trace back what's causing the Toolbar not to be displayed after the initial login. Maybe we should just force the user to login again after changing the site url.