diff --git a/admin/create-theme/theme-zip.php b/admin/create-theme/theme-zip.php index d856af5d..3f22fecf 100644 --- a/admin/create-theme/theme-zip.php +++ b/admin/create-theme/theme-zip.php @@ -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 ); @@ -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 );