From 375342609d9d1349cfbb4264afea0bdf8c277d6e Mon Sep 17 00:00:00 2001 From: Bernie Reiter <96308+ockham@users.noreply.github.com> Date: Wed, 3 Jul 2024 12:58:52 +0200 Subject: [PATCH] Use `$settings['variations']` instead of `$metadata['variations']` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Greg Ziółkowski --- lib/compat/wordpress-6.7/blocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) {