Changeset 54831 for trunk/src/wp-includes/block-template-utils.php
- Timestamp:
- 11/13/2022 01:49:16 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r54817 r54831 1201 1201 * @since 6.0.0 Adds the whole theme to the export archive. 1202 1202 * 1203 * @global string $wp_version The WordPress version string. 1204 * 1203 1205 * @return WP_Error|string Path of the ZIP file or error on failure. 1204 1206 */ 1205 1207 function wp_generate_block_templates_export_file() { 1208 global $wp_version; 1209 1206 1210 if ( ! class_exists( 'ZipArchive' ) ) { 1207 1211 return new WP_Error( 'missing_zip_package', __( 'Zip Export not supported.' ) ); … … 1271 1275 // If a version is defined, add a schema. 1272 1276 if ( $theme_json_raw['version'] ) { 1273 global $wp_version;1274 1277 $theme_json_version = 'wp/' . substr( $wp_version, 0, 3 ); 1275 1278 $schema = array( '$schema' => 'https://schemas.wp.org/' . $theme_json_version . '/theme.json' );
Note: See TracChangeset
for help on using the changeset viewer.