Opened 16 years ago
Closed 16 years ago
#382 closed defect (bug) (fixed)
Fix for Admin Bar Login/Signup Bug
Reported by: | chriscree | Owned by: | |
---|---|---|---|
Milestone: | Priority: | major | |
Severity: | Version: | ||
Component: | Keywords: | Admin Bar, Login, Signup | |
Cc: |
Description
When admin bar is shown on a sub-blog to someone not logged in the "Log In" and "Sign Up" buttons point to the sub blog instead of to the main site.
Modified bp-core-adminbar.php to fix the problem.
Line 33 changed to
echo '<li class="bp-login no-arrow"><a href="' . get_blog_option( 1, 'siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_blog_option(1, 'siteurl') . $_SERVER['REQUEST_URI']) . '">' . __( 'Log In', 'buddypress' ) . '</a></li>';
Line 37 changed to
echo '<li class="bp-signup no-arrow"><a href="' . get_blog_option( 1, 'siteurl') . '/register">' . __( 'Sign Up', 'buddypress' ) . '</a></li>';
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Modified Admin Bar File