From 34320e90899cb972983d83fa4672b0ab54758d36 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 10 Sep 2012 21:16:03 +0000 Subject: [PATCH] Add missing closedir() to wpmu_delete_blog(). Props timfs. fixes #21780 git-svn-id: https://develop.svn.wordpress.org/trunk@21801 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/ms.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index c686e6a038..65126ab6ab 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -111,6 +111,7 @@ function wpmu_delete_blog( $blog_id, $drop = false ) { else if ( @is_file( $dir . DIRECTORY_SEPARATOR . $file ) ) @unlink( $dir . DIRECTORY_SEPARATOR . $file ); } + @closedir( $dh ); } $index++; }