Skip to content

Commit 00d7dd3

Browse files
fix: If using non-English locale, Google Fonts may not load properly in the editor
1 parent cbd689f commit 00d7dd3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ Nope. Stackable only works with Gutenberg, the new WordPress editor.
304304

305305
== Changelog ==
306306

307+
= 3.17.2 =
308+
* Fixed: If using non-English locale, Google Fonts may not load properly in the editor
309+
307310
= 3.17.1 =
308311
* Fixed: Progress circle block - having a prefix/suffix with dynamic content now works #3499
309312
* Fixed: Image block - image becomes small when using a design library item then changing it to dynamic content #3522

src/util/font.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const MODERN_FONT_STACKS = {
102102

103103
export const getGoogleFontURL = fontName => {
104104
const family = fontName.replace( / /g, '+' )
105-
const subset = subsets[ locale ] ? `&subset=${ subsets }` : ''
105+
const subset = subsets[ locale ] ? `&subset=${ subsets[ locale ] }` : ''
106106
return `https://fonts.googleapis.com/css?family=${ family }:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic${ subset }`
107107
}
108108

0 commit comments

Comments
 (0)