Make WordPress Core


Ignore:
Timestamp:
02/08/2024 07:36:36 AM (6 months ago)
Author:
youknowriad
Message:

Editor: Register the Google Font collection.

By default, users will see a tab in the editor indicating the possibility
to active Google Fonts and install Fonts from there.

Props youknowriad, get_dave, mcsf.
Fixes #59166.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/functions.php

    r57514 r57558  
    352352}
    353353tests_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 */
     361function _unhook_font_registration() {
     362    remove_action( 'init', '_wp_register_default_font_collections' );
     363}
     364tests_add_filter( 'init', '_unhook_font_registration', 1000 );
Note: See TracChangeset for help on using the changeset viewer.