Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/31/2010 01:32:01 PM (16 years ago)
Author:
apeatling
Message:

Fixes #1736 props wpmuguru

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-templatetags.php

    r2488 r2492  
    12511251        function bp_get_signup_allowed() {
    12521252                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;
    12581255                } else {
    12591256                        if ( (int)get_option( 'users_can_register') )
    1260                                 return 'user';
     1257                                return true;
    12611258                }
    1262 
    12631259                return false;
    12641260        }
Note: See TracChangeset for help on using the changeset viewer.