From f178115189c3214f5419664486fb75ed42819a6b Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 8 Jun 2010 11:02:17 +0000 Subject: [PATCH] Use the correct variable name. Props ScottMac. Fixes #13778 git-svn-id: https://develop.svn.wordpress.org/trunk@15166 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/theme.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index fa3ef0939a..ea3d3c9496 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -634,8 +634,7 @@ function search_theme_directories() { } } } - if ( is_dir( $theme_dir ) ) - @closedir( $theme_dir ); + @closedir( $themes_dir ); } return $theme_files; }