Skip to content

Commit

Permalink
don't use the real path
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Mar 18, 2022
1 parent d4c71e8 commit 7c224c3
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -67,7 +67,7 @@ function gutenberg_generate_block_templates_export_file() {
// Skip directories as they are added automatically.
if ( ! $file->isDir() ) {
// Get real and relative path for current file.
$file_path = wp_normalize_path( $file->getRealPath() );
$file_path = wp_normalize_path( $file );
$relative_path = substr( $file_path, strlen( $theme_path ) + 1 );

if ( ! gutenberg_is_theme_directory_ignored( $relative_path ) ) {
Expand Down

0 comments on commit 7c224c3

Please sign in to comment.