Skip to:
Content

BuddyPress.org

Changeset 12758


Ignore:
Timestamp:
10/16/2020 04:12:36 PM (8 months ago)
Author:
dcavins
Message:

Fix admin tool reference to invitations table.

The reference to the invitations table in the repair tool should use the established function to fetch the table name.

Props shawfactor.

See #8375.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-tools.php

    r12739 r12758  
    361361
    362362    // Check for existence of invitations table.
    363     $bp_prefix  = bp_core_get_table_prefix();
    364     $table_name = "{$bp_prefix}bp_invitations";
     363    $table_name = BP_Invitation_Manager::get_table_name();
    365364    $query = $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $table_name ) );
    366365    if ( ! $wpdb->get_var( $query ) == $table_name ) {
Note: See TracChangeset for help on using the changeset viewer.