Skip to content

Commit 6899814

Browse files
authored
Merge branch 'WordPress:trunk' into trunk
2 parents 9a85d58 + 84c9911 commit 6899814

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

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-7.0/collections/google-fonts-with-preview.json',
269+
'font_families' => 'https://s.w.org/images/fonts/wp-7.1/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/wp-7.0/previews/open-sans/open-sans-400-normal.svg',
586+
'preview' => 'https://s.w.org/images/fonts/wp-7.1/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/wp-7.0/previews/open-sans/open-sans-400-normal.svg',
31+
'preview' => 'https://s.w.org/images/fonts/wp-7.1/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/wp-7.0/previews/open-sans/open-sans-400-normal.svg',
51+
'preview' => 'https://s.w.org/images/fonts/wp-7.1/previews/open-sans/open-sans-400-normal.svg',
5252
)
5353
);
5454
self::$font_family_id2 = self::create_font_family_post(
@@ -682,7 +682,7 @@ public function test_create_item_no_permission() {
682682
'name' => 'Open Sans',
683683
'slug' => 'open-sans',
684684
'fontFamily' => '"Open Sans", sans-serif',
685-
'preview' => 'https://s.w.org/images/fonts/wp-7.0/previews/open-sans/open-sans-400-normal.svg',
685+
'preview' => 'https://s.w.org/images/fonts/wp-7.1/previews/open-sans/open-sans-400-normal.svg',
686686
)
687687
)
688688
);
@@ -699,7 +699,7 @@ public function test_update_item() {
699699
$settings = array(
700700
'name' => 'Open Sans',
701701
'fontFamily' => 'Open Sans, "Noto Sans", sans-serif',
702-
'preview' => 'https://s.w.org/images/fonts/wp-7.0/previews/open-sans/open-sans-400-normal.svg',
702+
'preview' => 'https://s.w.org/images/fonts/wp-7.1/previews/open-sans/open-sans-400-normal.svg',
703703
);
704704

705705
$font_family_id = self::create_font_family_post( array( 'slug' => 'open-sans-2' ) );
@@ -755,7 +755,7 @@ public function data_update_item_individual_settings() {
755755
return array(
756756
array( array( 'name' => 'Opened Sans' ) ),
757757
array( array( 'fontFamily' => '"Opened Sans", sans-serif' ) ),
758-
array( array( 'preview' => 'https://s.w.org/images/fonts/wp-7.0/previews/opened-sans/opened-sans-400-normal.svg' ) ),
758+
array( array( 'preview' => 'https://s.w.org/images/fonts/wp-7.1/previews/opened-sans/opened-sans-400-normal.svg' ) ),
759759
// Empty preview is allowed.
760760
array( array( 'preview' => '' ) ),
761761
);

0 commit comments

Comments
 (0)