Make WordPress Core

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


Ignore:
Timestamp:
02/01/2022 11:00:34 PM (2 years ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54910, comment 50

    initial v1  
    3636This solution isn't ideal, as it effectively requires a block theme to register itself as one - something that's been avoided up until now. Some mix of parsing `index.html` and `scandir` would be too much of a performance hit IMO, even with caching.
    3737
    38 Since the only two files required for themes are `index.php` and `style.css`, I can't see a reliable way to identify an initialized block theme that has an empty `index.html` file without requiring some kind of 'registration' mechanism.
     38Since the only two files required for ''all'' themes are `index.php` and `style.css`, I can't see a reliable way to identify an initialized block theme that has an empty `index.html` file without requiring some kind of 'registration' mechanism.
    3939
    4040Can anyone see a way that a block theme might be identified based on something other than filenames/index.html contents, but without requiring a 'registration' mechanism?