Skip to content

Commit 05324dd

Browse files
Editor: Update Google Fonts API endpoint for WordPress 6.9.
Follow-up to [57558], [57686], [57871], [59295]. Props wildworks, dd32, mukesh27. Fixes #64007. git-svn-id: https://develop.svn.wordpress.org/trunk@60918 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2a01f8f commit 05324dd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/wp-includes/fonts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ function _wp_register_default_font_collections() {
266266
array(
267267
'name' => _x( 'Google Fonts', 'font collection name' ),
268268
'description' => __( 'Install from Google Fonts. Fonts are copied to and served from your site.' ),
269-
'font_families' => 'https://s.w.org/images/fonts/wp-6.7/collections/google-fonts-with-preview.json',
269+
'font_families' => 'https://s.w.org/images/fonts/wp-6.9/collections/google-fonts-with-preview.json',
270270
'categories' => array(
271271
array(
272272
'name' => _x( 'Sans Serif', 'font category' ),

tests/phpunit/tests/fonts/font-library/wpRestFontFacesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ public function test_create_item_with_all_properties() {
583583
'lineGapOverride' => '10%',
584584
'sizeAdjust' => '90%',
585585
'unicodeRange' => 'U+0025-00FF, U+4??',
586-
'preview' => 'https://s.w.org/images/fonts/16.7/previews/open-sans/open-sans-400-normal.svg',
586+
'preview' => 'https://s.w.org/images/fonts/wp-6.9/previews/open-sans/open-sans-400-normal.svg',
587587
'src' => 'https://fonts.gstatic.com/s/open-sans/v30/KFOkCnqEu92Fr1MmgWxPKTM1K9nz.ttf',
588588
);
589589

tests/phpunit/tests/fonts/font-library/wpRestFontFamiliesController.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Tests_REST_WpRestFontFamiliesController extends WP_Test_REST_Controller_Te
2828
'name' => 'Open Sans',
2929
'slug' => 'open-sans',
3030
'fontFamily' => '"Open Sans", sans-serif',
31-
'preview' => 'https://s.w.org/images/fonts/16.7/previews/open-sans/open-sans-400-normal.svg',
31+
'preview' => 'https://s.w.org/images/fonts/wp-6.9/previews/open-sans/open-sans-400-normal.svg',
3232
);
3333

3434
public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
@@ -48,7 +48,7 @@ public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
4848
'name' => 'Open Sans',
4949
'slug' => 'open-sans',
5050
'fontFamily' => '"Open Sans", sans-serif',
51-
'preview' => 'https://s.w.org/images/fonts/16.7/previews/open-sans/open-sans-400-normal.svg',
51+
'preview' => 'https://s.w.org/images/fonts/wp-6.9/previews/open-sans/open-sans-400-normal.svg',
5252
)
5353
);
5454
self::$font_family_id2 = self::create_font_family_post(
@@ -665,7 +665,7 @@ public function test_create_item_no_permission() {
665665
'name' => 'Open Sans',
666666
'slug' => 'open-sans',
667667
'fontFamily' => '"Open Sans", sans-serif',
668-
'preview' => 'https://s.w.org/images/fonts/16.7/previews/open-sans/open-sans-400-normal.svg',
668+
'preview' => 'https://s.w.org/images/fonts/wp-6.9/previews/open-sans/open-sans-400-normal.svg',
669669
)
670670
)
671671
);
@@ -682,7 +682,7 @@ public function test_update_item() {
682682
$settings = array(
683683
'name' => 'Open Sans',
684684
'fontFamily' => 'Open Sans, "Noto Sans", sans-serif',
685-
'preview' => 'https://s.w.org/images/fonts/16.9/previews/open-sans/open-sans-400-normal.svg',
685+
'preview' => 'https://s.w.org/images/fonts/wp-6.9/previews/open-sans/open-sans-400-normal.svg',
686686
);
687687

688688
$font_family_id = self::create_font_family_post( array( 'slug' => 'open-sans-2' ) );
@@ -738,7 +738,7 @@ public function data_update_item_individual_settings() {
738738
return array(
739739
array( array( 'name' => 'Opened Sans' ) ),
740740
array( array( 'fontFamily' => '"Opened Sans", sans-serif' ) ),
741-
array( array( 'preview' => 'https://s.w.org/images/fonts/16.7/previews/opened-sans/opened-sans-400-normal.svg' ) ),
741+
array( array( 'preview' => 'https://s.w.org/images/fonts/wp-6.9/previews/opened-sans/opened-sans-400-normal.svg' ) ),
742742
// Empty preview is allowed.
743743
array( array( 'preview' => '' ) ),
744744
);

0 commit comments

Comments
 (0)