Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

#1736 closed defect (bug) (fixed)

signup link always shows on adminbar in MU/network environment

Reported by: wpmuguru's profile wpmuguru Owned by:
Milestone: 1.2 Priority: major
Severity: Version:
Component: Keywords: adminbar has-patch
Cc:

Description

Sorry this isn't a patch file. The adminbar code expects bp_get_signup_allowed to return a true or false. It actually returns a false of the registration setting (none, all, etc.). This code returns the appropriate true/false:

	function bp_get_signup_allowed() {
		if ( bp_core_is_multisite() ) {
			if ( in_array( get_site_option( 'registration' ), array( 'all', 'user' ) ) )
				return true;
		} else {
			if ( (int)get_option( 'users_can_register') )
				return true;
		}
		return false;
	}

Change History (2)

#1 @wpmuguru
15 years ago

  • Keywords has-patch added

forgot the has-patch

#2 @apeatling
15 years ago

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

(In [2492]) Fixes #1736 props wpmuguru

Note: See TracTickets for help on using tickets.