Skip to content

Commit 16002e5

Browse files
Add theme.json path to index block template paths
1 parent f2212d9 commit 16002e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wp-includes/class-wp-theme.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,6 +1583,7 @@ public function is_block_theme() {
15831583
$paths_to_index_block_template = array(
15841584
$this->get_file_path( '/templates/index.html' ),
15851585
$this->get_file_path( '/block-templates/index.html' ),
1586+
$this->get_file_path( 'theme.json' ),
15861587
);
15871588

15881589
$this->block_theme = false;

0 commit comments

Comments
 (0)