Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

#382 closed defect (bug) (fixed)

Fix for Admin Bar Login/Signup Bug

Reported by: chriscree's profile 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)

bp-core-adminbar.php (8.9 KB) - added by chriscree 16 years ago.
Modified Admin Bar File

Download all attachments as: .zip

Change History (3)

@chriscree
16 years ago

Modified Admin Bar File

#1 @chriscree
16 years ago

  • Summary changed from Admin Bar Login/Signup Bug to Fix for Admin Bar Login/Signup Bug

#2 @apeatling
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Thanks for the fix.

Note: See TracTickets for help on using tickets.