Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/04/2016 01:51:17 AM (9 years ago)
Author:
r-a-y
Message:

Members: Use WPDB's global base_prefix for the signups DB table.

This increases compatibility for those using BuddyPress in a multi-network
environment.

Props needle.

Fixes #5762.

File:
1 edited

Legend:

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

    r10417 r10506  
    9090     */
    9191    public function setup_globals( $args = array() ) {
     92        global $wpdb;
     93
    9294        $bp = buddypress();
    9395
     
    109111            'global_tables'   => array(
    110112                'table_name_last_activity' => bp_core_get_table_prefix() . 'bp_activity',
    111                 'table_name_signups'       => bp_core_get_table_prefix() . 'signups',
     113                'table_name_signups'       => $wpdb->base_prefix . 'signups', // signups is a global WordPress table
    112114            )
    113115        );
Note: See TracChangeset for help on using the changeset viewer.