diff --git a/lib/compat/wordpress-6.7/blocks.php b/lib/compat/wordpress-6.7/blocks.php index 5cb14a9cea51b0..18d21621be7197 100644 --- a/lib/compat/wordpress-6.7/blocks.php +++ b/lib/compat/wordpress-6.7/blocks.php @@ -19,7 +19,7 @@ function gutenberg_filter_block_type_metadata_settings_allow_variations_php_file $variations_path = wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . - remove_block_asset_path_prefix( $metadata['variations'] ) + remove_block_asset_path_prefix( $settings['variations'] ) ) ); if ( $variations_path ) {