Make WordPress Core

Ticket #60486: vn.patch

File vn.patch, 748 bytes (added by scruffian, 2 years ago)
  • src/wp-includes/block-template-utils.php

    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() { 
    13091309        $theme_json_raw = $tree->get_data();
    13101310        // If a version is defined, add a schema.
    13111311        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, '-' ) );
    13131313                $schema             = array( '$schema' => 'https://schemas.wp.org/' . $theme_json_version . '/theme.json' );
    13141314                $theme_json_raw     = array_merge( $schema, $theme_json_raw );
    13151315        }