Skip to content

Commit

Permalink
Ensure paths are normalized
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Mar 15, 2022
1 parent bfc4119 commit 70ac83f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.0/block-template-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function gutenberg_generate_block_templates_export_file() {
$zip->addEmptyDir( $theme_name . '/parts' );

// Get path of the theme.
$theme_path = get_stylesheet_directory();
$theme_path = wp_normalize_path( get_stylesheet_directory() );

// Create recursive directory iterator.
$theme_files = new RecursiveIteratorIterator(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export default function SiteExport() {
role="menuitem"
icon={ download }
onClick={ handleExport }
info={ __( 'Download your templates and styles as a theme.' ) }
info={ __(
'Download your theme with updated templates and styles.'
) }
>
{ _x( 'Export', 'site exporter menu item' ) }
</MenuItem>
Expand Down

0 comments on commit 70ac83f

Please sign in to comment.