Opened 16 years ago
Closed 16 years ago
#1736 closed defect (bug) (fixed)
signup link always shows on adminbar in MU/network environment
| Reported by: | wpmuguru | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2 |
| Component: | Version: | ||
| Severity: | 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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
forgot the has-patch