Skip to content

Commit

Permalink
Fix dynamic filter name according to convention
Browse files Browse the repository at this point in the history
Co-authored-by: Bernie Reiter <[email protected]>
  • Loading branch information
sirreal and ockham committed May 16, 2024
1 parent 7ef925f commit a8c16cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/experimental/script-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function gutenberg_print_script_module_data(): void {
}

foreach ( array_keys( $modules ) as $module_id ) {
$data = apply_filters( 'scriptmoduledata_' . $module_id, array() );
$data = apply_filters( "scriptmoduledata_{$module_id}", array() );
if ( ! empty( $data ) ) {
/*
* This data will be printed as JSON inside a script tag like this:
Expand Down

0 comments on commit a8c16cb

Please sign in to comment.