Ticket #38292: 38292.patch
File 38292.patch, 607 bytes (added by , 8 years ago) |
---|
-
wp-includes/class-wp-theme.php
1092 1092 $results = scandir( $path ); 1093 1093 $files = array(); 1094 1094 1095 $exclusion = (array) apply_filters( 'theme_scandir_exclusions', array() ); 1096 1095 1097 foreach ( $results as $result ) { 1096 1098 if ( '.' == $result[0] ) 1097 1099 continue; 1100 if ( in_array( $result, $exclusion) ) 1101 continue; 1098 1102 if ( is_dir( $path . '/' . $result ) ) { 1099 1103 if ( ! $depth || 'CVS' == $result ) 1100 1104 continue;