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
This commit is contained in:
parent
39bdfa67a1
commit
da0a46d405
@ -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`" );
|
||||
|
Loading…
Reference in New Issue
Block a user