Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/29/2014 12:04:49 AM (10 years ago)
Author:
imath
Message:

Remove the bp_get_signup_allowed() checks in Sign-ups management feature

  • Create $wpdb->signups table even if sign-ups are not allowed on single blog config
  • Display the UI to manage sign-ups even if signups are not allowed

This way, administrator who temporarly deactivated registrations will still be able to moderate the pending signups.

props johnjamesjacoby, boonebgorges

See #5374

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-admin.php

    r8195 r8196  
    163163        /** Signups **************************************************************/
    164164
    165         if ( bp_get_signup_allowed() && is_admin() ) {
     165        if ( is_admin() ) {
    166166            if ( ! is_multisite() ) {
    167167                add_action( 'pre_user_query', array( $this, 'remove_signups_from_user_query'),  10, 1 );
     
    195195        );
    196196
    197         // Manage signups if allowed
    198         if ( bp_get_signup_allowed() ) {
    199             $hooks['signups'] = $this->signups_page = add_users_page(
    200                 __( 'Manage Signups',  'buddypress' ),
    201                 __( 'Manage Signups',  'buddypress' ),
    202                 $this->capability,
    203                 'bp-signups',
    204                 array( &$this, 'signups_admin' )
    205             );
    206         }
     197        // Manage signups
     198        $hooks['signups'] = $this->signups_page = add_users_page(
     199            __( 'Manage Signups',  'buddypress' ),
     200            __( 'Manage Signups',  'buddypress' ),
     201            $this->capability,
     202            'bp-signups',
     203            array( &$this, 'signups_admin' )
     204        );
    207205
    208206        $edit_page = 'user-edit';
Note: See TracChangeset for help on using the changeset viewer.