Skip to:
Content

BuddyPress.org

Changeset 9718


Ignore:
Timestamp:
04/07/2015 02:34:37 PM (10 years ago)
Author:
boonebgorges
Message:

In bp_pre_schema_upgrade(), use bp_esc_like() rather than $wpdb->esc_like().

The $wpdb method was introduced in WP 4.0. bp_esc_like() is a backward-
compatible wrapper.

See [9716]. See #6346.

File:
1 edited

Legend:

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

    r9717 r9718  
    287287        foreach ( $tables as $table_name => $indexes ) {
    288288            foreach ( $indexes as $index ) {
    289                 if ( $wpdb->query( $wpdb->prepare( "SHOW TABLES LIKE %s", $wpdb->esc_like( $table_name ) ) ) ) {
     289                if ( $wpdb->query( $wpdb->prepare( "SHOW TABLES LIKE %s", bp_esc_like( $table_name ) ) ) ) {
    290290                    $wpdb->query( "ALTER TABLE $table_name DROP INDEX $index" );
    291291                }
Note: See TracChangeset for help on using the changeset viewer.