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/src/wp-includes/fonts.php

    r57539 r57558  
    189189    }
    190190}
     191
     192/**
     193 * Register the default font collections.
     194 *
     195 * @access private
     196 * @since 6.5.0
     197 */
     198function _wp_register_default_font_collections() {
     199    wp_register_font_collection( 'google-fonts', 'https://s.w.org/images/fonts/17.7/collections/google-fonts-with-preview.json' );
     200}
Note: See TracChangeset for help on using the changeset viewer.