Make WordPress Core

Changeset 53 in tests for wp-test.php


Ignore:
Timestamp:
10/10/2007 05:39:09 PM (19 years ago)
Author:
nbachiyski
Message:

DROP the tables before install also to prevent leftover tables to do harm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-test.php

    r39 r53  
    4949define('WP_INSTALLING', 1);
    5050require_once(ABSPATH.'wp-settings.php');
     51
     52drop_tables();
     53
    5154if (TEST_MU)
    5255    require_once(ABSPATH.'wp-admin/upgrade-functions.php');
     
    8083
    8184// clean up the database
    82 global $wpdb;
    83 $tables = $wpdb->get_col('SHOW TABLES;');
    84 foreach ($tables as $table)
    85     $wpdb->query("DROP TABLE IF EXISTS {$table}");
     85drop_tables();
    8686
    8787?>
Note: See TracChangeset for help on using the changeset viewer.