diff --git a/wp-includes/block-template-utils.php b/wp-includes/block-template-utils.php index 0cfdccdc6e..381a70e85d 100644 --- a/wp-includes/block-template-utils.php +++ b/wp-includes/block-template-utils.php @@ -937,7 +937,7 @@ function wp_generate_block_templates_export_file() { } $obscura = wp_generate_password( 12, false, false ); - $theme_name = wp_get_theme()->get( 'TextDomain' ); + $theme_name = basename( get_stylesheet() ); $filename = get_temp_dir() . $theme_name . $obscura . '.zip'; $zip = new ZipArchive(); diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php index dc81eeeccc..691760812b 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php @@ -82,7 +82,7 @@ class WP_REST_Edit_Site_Export_Controller extends WP_REST_Controller { return $filename; } - $theme_name = wp_get_theme()->get( 'TextDomain' ); + $theme_name = basename( get_stylesheet() ); header( 'Content-Type: application/zip' ); header( 'Content-Disposition: attachment; filename=' . $theme_name . '.zip' ); header( 'Content-Length: ' . filesize( $filename ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 2b3a078fb4..2cb4851f45 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53401'; +$wp_version = '6.1-alpha-53402'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.