Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/02/2018 06:07:46 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Meta: Prefer internal table references over $wpdb ones.

This change updates a few direct database queries to reference the database table names internally set by BP_Component rather than what's been passed into the $wpdb global.

We want to use these everywhere, as they are already in use everywhere else direct queries are made.

Blogs, Groups, and Messages meta deletion functions are affected.

See #7834.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-component.php

    r11884 r12180  
    662662        if ( !empty( $tables ) && is_array( $tables ) ) {
    663663            foreach ( $tables as $global_name => $table_name ) {
    664                 $this->$global_name = $table_name;
     664                $this->{$global_name} = $table_name;
    665665            }
    666666
Note: See TracChangeset for help on using the changeset viewer.