Changes between Initial Version and Version 1 of Ticket #54910, comment 1
- Timestamp:
- 01/29/2022 11:34:07 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #54910, comment 1
initial v1 1 1 Hi and thanks for the report! 2 2 3 The [https://core.trac.wordpress.org/browser/tags/5.9/src/wp-includes/class-wp-theme.php#L1478 block-based themes] require a readable index.html file in both the 'block-templates' and 'templates' directories, so you apparently had the two directories.3 The [https://core.trac.wordpress.org/browser/tags/5.9/src/wp-includes/class-wp-theme.php#L1478 block-based themes] require a readable index.html file in ~~both~~ **one of** the 'block-templates' and 'templates' directories, ~~so you apparently had the two directories~~. 4 4 5 5 To avoid directory browsing, you could switch one or both of those index files to an [https://core.trac.wordpress.org/browser/tags/5.9/src/wp-content/themes/index.php index.php] file.