mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 04:04:35 +00:00
Bundled Theme: Load Google fonts with display=fallback parameter for better UX in case the font cannot be loaded.
Providing this query parameter ensures the stylesheet contains the `font-display: fallback` rule. This changeset also updates the Open Sans font used by core accordingly. Props westonruter. Fixes #47282. git-svn-id: https://develop.svn.wordpress.org/trunk@45485 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1919,7 +1919,7 @@ function wp_default_styles( &$styles ) {
|
||||
}
|
||||
|
||||
// Hotlink Open Sans, for now
|
||||
$open_sans_font_url = "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";
|
||||
$open_sans_font_url = "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets&display=fallback";
|
||||
}
|
||||
|
||||
// Register a stylesheet for the selected admin color scheme.
|
||||
|
||||
Reference in New Issue
Block a user