Changeset 53402
- Timestamp:
- 05/17/2022 12:08:15 PM (2 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r53197 r53402 938 938 939 939 $obscura = wp_generate_password( 12, false, false ); 940 $theme_name = wp_get_theme()->get( 'TextDomain');940 $theme_name = basename( get_stylesheet() ); 941 941 $filename = get_temp_dir() . $theme_name . $obscura . '.zip'; 942 942 -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php
r53129 r53402 83 83 } 84 84 85 $theme_name = wp_get_theme()->get( 'TextDomain');85 $theme_name = basename( get_stylesheet() ); 86 86 header( 'Content-Type: application/zip' ); 87 87 header( 'Content-Disposition: attachment; filename=' . $theme_name . '.zip' );
Note: See TracChangeset
for help on using the changeset viewer.