[buddypress-trac] [BuddyPress] #1736: signup link always shows on adminbar in MU/network environment

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Jan 31 04:20:00 UTC 2010


#1736: signup link always shows on adminbar in MU/network environment
---------------------+------------------------------------------------------
Reporter:  wpmuguru  |       Owner:     
    Type:  defect    |      Status:  new
Priority:  major     |   Milestone:  1.2
Keywords:  adminbar  |  
---------------------+------------------------------------------------------
 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;
         }
 }}}

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1736>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list