Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/10/2014 08:49:58 PM (12 years ago)
Author:
boonebgorges
Message:

Use DELETE rather than TRUNCATE when clearing items in bp_blogs_record_existing_blogs()

The TRUNCATE command was causing issues with table regeneration when running
unit tests in the Travis-CI environment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-functions.php

    r8073 r8111  
    7373
    7474    // Truncate user blogs table and re-record.
    75     $wpdb->query( "TRUNCATE TABLE {$bp->blogs->table_name}" );
     75    $wpdb->query( "DELETE FROM {$bp->blogs->table_name} WHERE 1=1" );
    7676
    7777    if ( is_multisite() ) {
Note: See TracChangeset for help on using the changeset viewer.