From dff2159b9a60ef198230c8ccf4cec127b5fc5a12 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 4 Aug 2005 09:40:17 +0000 Subject: Changes from Core WP. Added tinymce editor and other fixes git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@120 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wp-inst/wp-includes/functions.php') diff --git a/wp-inst/wp-includes/functions.php b/wp-inst/wp-includes/functions.php index 3796706..915f1f8 100644 --- a/wp-inst/wp-includes/functions.php +++ b/wp-inst/wp-includes/functions.php @@ -1543,7 +1543,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; } -- cgit