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
This commit is contained in:
saxmatt 2005-01-31 18:46:17 +00:00
parent b9ea830dd6
commit dac4a93b38
1 changed files with 1 additions and 1 deletions

View File

@ -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);