Changeset 496815
- Timestamp:
- 01/29/2012 09:39:26 AM (14 years ago)
- Location:
- wordpress-reset/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wordpress-reset.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-reset/trunk/readme.txt
r496738 r496815 54 54 == Upgrade Notice == 55 55 56 = 1.3 =56 = 1.3.1 = 57 57 58 58 Fixes a deprecated notice in WordPress 3.3, removed the $auto_reactivate variable, and look for REACTIVATE_WP_RESET to be defined in wp-config.php, as well as the ability to activate additional plugins using a global $reactivate_wp_reset_additional array defined in wp-config.php 59 59 60 60 == Changelog == 61 62 = 1.3.1 (2012-01-29): = 63 * Apparently in a LIKE query, an underscore matches a single character, so we must escape it 61 64 62 65 = 1.3 (2012-01-29): = -
wordpress-reset/trunk/wordpress-reset.php
r496737 r496815 5 5 Description: Resets the WordPress database back to it's defaults. Deletes all customizations and content. Does not modify files only resets the database. 6 6 Author: Matt Martz 7 Version: 1.3 7 Version: 1.3.1 8 8 Author URI: http://sivel.net/ 9 9 … … 71 71 72 72 global $wpdb, $reactivate_wp_reset_additional; 73 $tables = $wpdb->get_col( "SHOW TABLES LIKE '{$wpdb->prefix}%'" ); 73 74 $prefix = str_replace( '_', '\_', $wpdb->prefix ); 75 $tables = $wpdb->get_col( "SHOW TABLES LIKE '{$prefix}%'" ); 74 76 foreach ( $tables as $table ) { 75 77 $wpdb->query( "DROP TABLE $table" );
Note: See TracChangeset
for help on using the changeset viewer.