Skip to content

Commit

Permalink
Use path_join() function
Browse files Browse the repository at this point in the history
Co-authored-by: Vicente Canales <1157901+vcanales@users.noreply.github.com>
  • Loading branch information
t-hamano and vcanales authored Apr 29, 2024
1 parent 6ed54e4 commit 8ec8e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/create-theme/theme-zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static function add_templates_to_zip( $zip, $export_type, $new_slug ) {

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

Expand Down

0 comments on commit 8ec8e47

Please sign in to comment.