Don't look at dot directories or CVS for themes.
git-svn-id: https://develop.svn.wordpress.org/trunk@2175 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bbf8db321d
commit
5748ed2497
@ -1320,7 +1320,7 @@ function get_themes() {
|
|||||||
if ($themes_dir) {
|
if ($themes_dir) {
|
||||||
while(($theme_dir = $themes_dir->read()) !== false) {
|
while(($theme_dir = $themes_dir->read()) !== false) {
|
||||||
if (is_dir($theme_root . '/' . $theme_dir)) {
|
if (is_dir($theme_root . '/' . $theme_dir)) {
|
||||||
if ($theme_dir == '.' || $theme_dir == '..') {
|
if ($theme_dir{0} == '.' || $theme_dir == '..' || $theme_dir == 'CVS') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$stylish_dir = @ dir($theme_root . '/' . $theme_dir);
|
$stylish_dir = @ dir($theme_root . '/' . $theme_dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user