From dac4a93b38032e904e61c560d4c2990735345032 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 31 Jan 2005 18:46:17 +0000 Subject: [PATCH] Don't look at dot directories or CVS for themes. git-svn-id: http://svn.automattic.com/wordpress/trunk@2175 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 05dddcec4..b9e7b525d 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1320,7 +1320,7 @@ function get_themes() { if ($themes_dir) { while(($theme_dir = $themes_dir->read()) !== false) { if (is_dir($theme_root . '/' . $theme_dir)) { - if ($theme_dir == '.' || $theme_dir == '..') { + if ($theme_dir{0} == '.' || $theme_dir == '..' || $theme_dir == 'CVS') { continue; } $stylish_dir = @ dir($theme_root . '/' . $theme_dir);