Changeset 57514 for trunk/tests/phpunit/includes/functions.php
- Timestamp:
- 02/01/2024 12:52:54 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/functions.php
r56472 r57514 340 340 */ 341 341 function _unhook_block_registration() { 342 // Block types. 342 343 require __DIR__ . '/unregister-blocks-hooks.php'; 343 344 remove_action( 'init', 'register_core_block_types_from_metadata' ); … … 345 346 remove_action( 'init', 'register_block_core_widget_group' ); 346 347 remove_action( 'init', 'register_core_block_types_from_metadata' ); 348 349 // Block binding sources. 350 remove_action( 'init', '_register_block_bindings_pattern_overrides_source' ); 351 remove_action( 'init', '_register_block_bindings_post_meta_source' ); 347 352 } 348 353 tests_add_filter( 'init', '_unhook_block_registration', 1000 );
Note: See TracChangeset
for help on using the changeset viewer.