Skip to content

Commit

Permalink
Fix problem with zip file creation on Windows (#606)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Vicente Canales <[email protected]>
Co-authored-by: Jason Crist <[email protected]>
  • Loading branch information
3 people authored Apr 30, 2024
1 parent 058c6fe commit 35cbb46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/create-theme/theme-zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public static function add_templates_to_zip( $zip, $export_type, $new_slug ) {

// Write the template content
$zip->addFromStringToTheme(
$template_folders['wp_template'] . DIRECTORY_SEPARATOR . $template->slug . '.html',
path_join( $template_folders['wp_template'], $template->slug . '.html' ),
$template->content
);

Expand All @@ -196,7 +196,7 @@ public static function add_templates_to_zip( $zip, $export_type, $new_slug ) {

// Write the template content
$zip->addFromStringToTheme(
$template_folders['wp_template_part'] . DIRECTORY_SEPARATOR . $template->slug . '.html',
path_join( $template_folders['wp_template_part'], $template->slug . '.html' ),
$template->content
);

Expand Down

0 comments on commit 35cbb46

Please sign in to comment.