Skip to:
Content

BuddyPress.org

Changeset 9849


Ignore:
Timestamp:
05/07/2015 01:18:30 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Core: Bracketize variables in strings in bp_pre_schema_upgrade()

File:
1 edited

Legend:

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

    r9819 r9849  
    295295            foreach ( $indexes as $index ) {
    296296                if ( $wpdb->query( $wpdb->prepare( "SHOW TABLES LIKE %s", bp_esc_like( $table_name ) ) ) ) {
    297                     $wpdb->query( "ALTER TABLE $table_name DROP INDEX $index" );
     297                    $wpdb->query( "ALTER TABLE {$table_name} DROP INDEX {$index}" );
    298298                }
    299299            }
Note: See TracChangeset for help on using the changeset viewer.