Changeset 57928
- Timestamp:
- 04/04/2024 06:53:39 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r57919 r57928 230 230 } 231 231 $path_list = array(); 232 try{232 if ( is_dir( $base_directory ) ) { 233 233 $nested_files = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $base_directory ) ); 234 234 $nested_html_files = new RegexIterator( $nested_files, '/^.+\.html$/i', RecursiveRegexIterator::GET_MATCH ); … … 236 236 $path_list[] = $path; 237 237 } 238 } catch ( Exception $e ) {239 // Do nothing.240 238 } 241 239 $template_path_list[ $base_directory ] = $path_list;
Note: See TracChangeset
for help on using the changeset viewer.