Fixes #1370
git-svn-id: http://svn.automattic.com/wordpress/trunk@2740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e270daf352
commit
a8e34ba8e9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue