Editor: Update Google Fonts API endpoint for WordPress 6.7.

Updates the Google Fonts API to use the URL `https://s.w.org/images/fonts/wp-6.7/collections/google-fonts-with-preview.json` with an updated collection of fonts available for install.

Props dilip2615, mmaattiiaass, wildworks, dd32.
Fixes #62258.


Built from https://develop.svn.wordpress.org/trunk@59286


git-svn-id: http://core.svn.wordpress.org/trunk@58678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Peter Wilson 2024-10-23 22:39:17 +00:00
parent 204d60314b
commit 1809b18404
2 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ function _wp_register_default_font_collections() {
array( array(
'name' => _x( 'Google Fonts', 'font collection name' ), 'name' => _x( 'Google Fonts', 'font collection name' ),
'description' => __( 'Install from Google Fonts. Fonts are copied to and served from your site.' ), 'description' => __( 'Install from Google Fonts. Fonts are copied to and served from your site.' ),
'font_families' => 'https://s.w.org/images/fonts/wp-6.5/collections/google-fonts-with-preview.json', 'font_families' => 'https://s.w.org/images/fonts/wp-6.7/collections/google-fonts-with-preview.json',
'categories' => array( 'categories' => array(
array( array(
'name' => _x( 'Sans Serif', 'font category' ), 'name' => _x( 'Sans Serif', 'font category' ),

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.8-alpha-59285'; $wp_version = '6.8-alpha-59286';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.