summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-08-25 15:02:55 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-08-25 15:02:55 +0000
commita43b200014ea74072bc74a4076a67f8ccb96ec86 (patch)
treed40cd55bcbea0ef7198a18cdb6cf54aca183331f
parentf2784d070beeaee5cf53508fdbfe979238a03dee (diff)
downloadwordpress-mu-a43b200014ea74072bc74a4076a67f8ccb96ec86.tar.gz
wordpress-mu-a43b200014ea74072bc74a4076a67f8ccb96ec86.tar.xz
wordpress-mu-a43b200014ea74072bc74a4076a67f8ccb96ec86.zip
Escape the "_" as it's a wildcard too, fixes #727, props jeppe
git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1436 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r--wp-admin/includes/mu.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-admin/includes/mu.php b/wp-admin/includes/mu.php
index c06c0bc..f51e1b9 100644
--- a/wp-admin/includes/mu.php
+++ b/wp-admin/includes/mu.php
@@ -41,7 +41,7 @@ function wpmu_delete_blog($blog_id, $drop = false) {
update_blog_status( $blog_id, 'deleted', 1 );
if ( $drop ) {
- $drop_tables = $wpdb->get_results("show tables LIKE '". $wpdb->base_prefix . $blog_id . "_%'", ARRAY_A);
+ $drop_tables = $wpdb->get_results("show tables LIKE '". $wpdb->base_prefix . $blog_id . "\_%'", ARRAY_A);
$drop_tables = apply_filters( 'wpmu_drop_tables', $drop_tables );
reset( $drop_tables );