Skip to:
Content

BuddyPress.org

Changeset 8123


Ignore:
Timestamp:
03/13/2014 11:32:46 AM (11 years ago)
Author:
boonebgorges
Message:

Register the signup table in the members global even if registration is disabled

Conditionally registering the table causes problems for our unit tests. It also
means that we have to worry about table creation when enabling registration
later on.

See #5374

File:
1 edited

Legend:

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

    r8119 r8123  
    7777            'global_tables' => array(
    7878                'table_name_last_activity' => bp_core_get_table_prefix() . 'bp_activity',
     79                'table_name_signups'       => bp_core_get_table_prefix() . 'signups',
    7980            ),
    8081            'search_string' => __( 'Search Members...', 'buddypress' ),
    8182        );
    82 
    83         if ( bp_get_signup_allowed() ) {
    84             $members_globals['global_tables']['table_name_signups'] = bp_core_get_table_prefix() . 'signups';
    85         }
    8683
    8784        parent::setup_globals( $members_globals );
Note: See TracChangeset for help on using the changeset viewer.