From a0729014b8ec9b74bf83bbf05bda68d51b2e3abf Mon Sep 17 00:00:00 2001 From: dd32 Date: Tue, 8 Jun 2010 11:02:17 +0000 Subject: [PATCH] Use the correct variable name. Props ScottMac. Fixes #13778 git-svn-id: http://svn.automattic.com/wordpress/trunk@15166 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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; }