Changeset 2492
- Timestamp:
- 01/31/2010 01:32:01 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-templatetags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r2488 r2492 1251 1251 function bp_get_signup_allowed() { 1252 1252 if ( bp_core_is_multisite() ) { 1253 $status = get_site_option( 'registration' ); 1254 if ( 'all' != $status && 'user' != $status ) 1255 return false; 1256 1257 return true; 1253 if ( in_array( get_site_option( 'registration' ), array( 'all', 'user' ) ) ) 1254 return true; 1258 1255 } else { 1259 1256 if ( (int)get_option( 'users_can_register') ) 1260 return 'user';1257 return true; 1261 1258 } 1262 1263 1259 return false; 1264 1260 }
Note: See TracChangeset
for help on using the changeset viewer.