From da0a46d4056f8039c1741a7076249b2c506f5b35 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 11 May 2013 21:58:40 +0000 Subject: [PATCH] Pass blog_id to the wpmu_drop_tables filter. props mitchoyoshitaka. see #24320. git-svn-id: https://develop.svn.wordpress.org/trunk@24245 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/ms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index 840c4b436e..6f59dd6570 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -80,7 +80,7 @@ function wpmu_delete_blog( $blog_id, $drop = false ) { $drop = false; if ( $drop ) { - $drop_tables = apply_filters( 'wpmu_drop_tables', $wpdb->tables( 'blog' ) ); + $drop_tables = apply_filters( 'wpmu_drop_tables', $wpdb->tables( 'blog' ), $blog_id ); foreach ( (array) $drop_tables as $table ) { $wpdb->query( "DROP TABLE IF EXISTS `$table`" );