Fix problem with zip file creation on Windows (#606)

---------

Co-authored-by: Vicente Canales <1157901+vcanales@users.noreply.github.com>
Co-authored-by: Jason Crist <jcrist@pbking.com>
This commit is contained in:
Aki Hamano 2024-05-01 01:34:57 +09:00 committed by GitHub
parent 058c6fe255
commit 35cbb46035
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -173,7 +173,7 @@ class Theme_Zip {

// 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
);

@ -196,7 +196,7 @@ class Theme_Zip {

// 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
);