Don't look at dot directories or CVS for themes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b9ea830dd6
commit
dac4a93b38
|
@ -1320,7 +1320,7 @@ function get_themes() {
|
|||
if ($themes_dir) {
|
||||
while(($theme_dir = $themes_dir->read()) !== false) {
|
||||
if (is_dir($theme_root . '/' . $theme_dir)) {
|
||||
if ($theme_dir == '.' || $theme_dir == '..') {
|
||||
if ($theme_dir{0} == '.' || $theme_dir == '..' || $theme_dir == 'CVS') {
|
||||
continue;
|
||||
}
|
||||
$stylish_dir = @ dir($theme_root . '/' . $theme_dir);
|
||||
|
|
Loading…
Reference in New Issue