diff --git a/src/wp-includes/block-template-utils.php b/src/wp-includes/block-template-utils.php
index 3f912ad061..c9bbc1bb55 100644
|
a
|
b
|
function wp_generate_block_templates_export_file() { |
| 1309 | 1309 | $theme_json_raw = $tree->get_data(); |
| 1310 | 1310 | // If a version is defined, add a schema. |
| 1311 | 1311 | if ( $theme_json_raw['version'] ) { |
| 1312 | | $theme_json_version = 'wp/' . substr( $wp_version, 0, 3 ); |
| | 1312 | $theme_json_version = 'wp/' . substr( $version, 0, strpos( $version, '-' ) ); |
| 1313 | 1313 | $schema = array( '$schema' => 'https://schemas.wp.org/' . $theme_json_version . '/theme.json' ); |
| 1314 | 1314 | $theme_json_raw = array_merge( $schema, $theme_json_raw ); |
| 1315 | 1315 | } |