| @@ -19,16 +19,18 @@ | ||
| 19 | 19 | $theme = wp_get_theme(); |
| 20 | 20 | |
| 21 | 21 | return [ |
| 22 | 22 | 'theme' => [ |
| 23 | - 'name' => $theme->get( 'Name' ), | |
| 24 | - 'url' => $theme->get( 'ThemeURI' ), | |
| 25 | - 'version' => $theme->get( 'Version' ), | |
| 26 | - 'author' => [ | |
| 23 | + 'name' => $theme->get( 'Name' ), | |
| 24 | + 'url' => $theme->get( 'ThemeURI' ), | |
| 25 | + 'version' => $theme->get( 'Version' ), | |
| 26 | + 'author' => [ | |
| 27 | 27 | 'name' => $theme->get( 'Author' ), |
| 28 | 28 | 'url' => $theme->get( 'AuthorURI' ), |
| 29 | 29 | ], |
| 30 | - 'parentTheme' => $this->get_parent_theme( $theme ), | |
| 30 | + 'parentTheme' => $this->get_parent_theme( $theme ), | |
| 31 | + 'blockTemplateSupport' => current_theme_supports( 'block-templates' ), | |
| 32 | + 'isBlockTheme' => function_exists( 'wp_is_block_theme' ) && wp_is_block_theme(), | |
| 31 | 33 | ], |
| 32 | 34 | ]; |
| 33 | 35 | } |
| 34 | 36 | |