Skip to content

Commit

Permalink
Use $settings['variations'] instead of $metadata['variations']
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Ziółkowski <grzegorz@gziolo.pl>
  • Loading branch information
ockham and gziolo authored Jul 3, 2024
1 parent f626cc4 commit 3753426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.7/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 3753426

Please sign in to comment.