mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-09-25 10:20:22 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@57558 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -351,3 +351,14 @@ function _unhook_block_registration() {
|
||||
remove_action( 'init', '_register_block_bindings_post_meta_source' );
|
||||
}
|
||||
tests_add_filter( 'init', '_unhook_block_registration', 1000 );
|
||||
|
||||
/**
|
||||
* After the init action has been run once, trying to re-register font collections can cause
|
||||
* errors. To avoid this, unhook the font registration functions.
|
||||
*
|
||||
* @since 6.5.0
|
||||
*/
|
||||
function _unhook_font_registration() {
|
||||
remove_action( 'init', '_wp_register_default_font_collections' );
|
||||
}
|
||||
tests_add_filter( 'init', '_unhook_font_registration', 1000 );
|
||||
|
||||
Reference in New Issue
Block a user