From 42b54bdd1c81542b2bd9bd9c282d86f3e4d1719c Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Wed, 3 Aug 2005 00:24:13 +0000 Subject: [PATCH] Fixes #1370 git-svn-id: https://develop.svn.wordpress.org/trunk@2740 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 e8391dca4d..8328fcfc85 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1541,7 +1541,7 @@ function get_themes() { $themes_dir = @ dir($theme_root); if ($themes_dir) { while(($theme_dir = $themes_dir->read()) !== false) { - if (is_dir($theme_root . '/' . $theme_dir)) { + if ( is_dir($theme_root . '/' . $theme_dir) && is_readable($theme_root . '/' . $theme_dir) ) { if ($theme_dir{0} == '.' || $theme_dir == '..' || $theme_dir == 'CVS') { continue; }