mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Fixes #1370
git-svn-id: https://develop.svn.wordpress.org/trunk@2740 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user