Changeset 57558 for trunk/tests/phpunit/includes/functions.php
- Timestamp:
- 02/08/2024 07:36:36 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/functions.php
r57514 r57558 352 352 } 353 353 tests_add_filter( 'init', '_unhook_block_registration', 1000 ); 354 355 /** 356 * After the init action has been run once, trying to re-register font collections can cause 357 * errors. To avoid this, unhook the font registration functions. 358 * 359 * @since 6.5.0 360 */ 361 function _unhook_font_registration() { 362 remove_action( 'init', '_wp_register_default_font_collections' ); 363 } 364 tests_add_filter( 'init', '_unhook_font_registration', 1000 );
Note: See TracChangeset
for help on using the changeset viewer.