Changeset 40326
- Timestamp:
- 03/24/2017 06:43:13 PM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/class-wp-theme.php
r39809 r40326 1140 1140 $files = array(); 1141 1141 1142 /** 1143 * Filters the array of excluded directories and files while scanning theme folder. 1144 * 1145 * @since 4.7.4 1146 * 1147 * @param array $exclusions Array of excluded directories and files. 1148 */ 1149 $exclusions = (array) apply_filters( 'theme_scandir_exclusions', array( 'CVS', 'node_modules' ) ); 1150 1142 1151 foreach ( $results as $result ) { 1143 if ( '.' == $result[0] )1152 if ( '.' == $result[0] || in_array( $result, $exclusions, true ) ) { 1144 1153 continue; 1154 } 1145 1155 if ( is_dir( $path . '/' . $result ) ) { 1146 if ( ! $depth || 'CVS' == $result)1156 if ( ! $depth ) 1147 1157 continue; 1148 1158 $found = self::scandir( $path . '/' . $result, $extensions, $depth - 1 , $relative_path . $result );
Note: See TracChangeset
for help on using the changeset viewer.