Skip to content

Commit 7226086

Browse files
gziolocbravobernal
authored andcommitted
Tests: Change how directives processing gets disabled (WordPress#62095)
Neccessary for the planned changes in WordPress core: WordPress/wordpress-develop#6331. Co-authored-by: gziolo <gziolo@git.wordpress.org> Co-authored-by: cbravobernal <cbravobernal@git.wordpress.org>
1 parent db61847 commit 7226086

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/e2e-tests/plugins/interactive-blocks.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ function () {
2929
// Ensure the interactivity API is loaded.
3030
wp_interactivity();
3131
// But remove the server directive processing.
32-
remove_filter(
33-
'render_block_data',
34-
'wp_interactivity_process_directives_of_interactive_blocks',
35-
100
36-
);
32+
add_filter( 'interactivity_process_directives', '__return_false' );
3733
}
3834
}
3935
);

0 commit comments

Comments
 (0)