mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Pass blog_id to the wpmu_drop_tables filter. props mitchoyoshitaka. see #24320.
git-svn-id: http://core.svn.wordpress.org/trunk@24245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d47b53b872
commit
46097dec37
@ -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