From a43b200014ea74072bc74a4076a67f8ccb96ec86 Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 25 Aug 2008 15:02:55 +0000 Subject: 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 --- wp-admin/includes/mu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wp-admin') 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 ); -- cgit