Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #54910, comment 1


Ignore:
Timestamp:
01/29/2022 11:34:07 PM (2 years ago)
Author:
sabernhardt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54910, comment 1

    initial v1  
    11Hi and thanks for the report!
    22
    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.
     3The [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~~.
    44
    55To 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.