latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

BuddyPress Redirecting From Login Welome Page

Home Forums Community Forum BuddyPress Redirecting From Login Welome Page

This topic contains 2 replies, has 3 voices. Last updated by  Jason (Lead Developer) 4 years, 5 months ago.

Topic Author Topic
Posted: Sunday Jul 22nd, 2012 at 1:38 pm #19943

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Monday Jul 23rd, 2012 at 5:31 am #19973
Raam Dev
Username: Raam
Staff Member

Hi Bruce,

Thank you for the thorough explanation and for sharing your fix. I will send Jason, the lead developer, a message to see if he can shed any additional insight here when he gets a chance.

Posted: Saturday Jul 28th, 2012 at 6:30 pm #20568
Staff Member

Thanks for the heads up on this request for support.

What you’re referring to is related to code found in BuddyPress, in file: bp-core-buddybar.php

function bp_adminbar_login_menu() {
	global $bp;

	if ( is_user_logged_in() )
		return false;

	echo '<li class="bp-login no-arrow"><a href="' . bp_get_root_domain() . '/wp-login.php?redirect_to=' . urlencode( bp_get_root_domain() ) . '">' . __( 'Log In', 'buddypress' ) . '</a></li>';

	// Show "Sign Up" link if user registrations are allowed
	if ( bp_get_signup_allowed() )
		echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page(false) . '">' . __( 'Sign Up', 'buddypress' ) . '</a></li>';
}

Unfortunately, there’s no filter provided by BuddyPress for this. So what you’ve already done, is fine. Other options might include editing the BuddyPress file instead of the WordPress core file. Or, instead of making any code changes, add some jQuery to your site, which automatically removes the redirect_to argument from URLs that contain wp-login.php.

Viewing 2 replies - 1 through 2 (of 2 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.