From f2e8309c3f218fa5514108bede4c21502ef52baf Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Wed, 23 Aug 2023 04:53:20 +0000 Subject: [PATCH] Global Fonts: Fix the inline URLs after #424. --- mu-plugins/global-fonts/index.php | 3 ++- mu-plugins/global-fonts/style.css | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mu-plugins/global-fonts/index.php b/mu-plugins/global-fonts/index.php index da639bba9..9789baaf3 100644 --- a/mu-plugins/global-fonts/index.php +++ b/mu-plugins/global-fonts/index.php @@ -51,7 +51,8 @@ function relative_to_absolute_urls( $editor_settings ) { '!url\(./(?P[^)]+)\)!i', function( $m ) { return "url(" . plugins_url( $m['path'], __FILE__ ) . ")"; - } + }, + $style['css'] ); $editor_settings['styles'][ $i ] = $style; diff --git a/mu-plugins/global-fonts/style.css b/mu-plugins/global-fonts/style.css index bdbcd5011..92216ab7e 100644 --- a/mu-plugins/global-fonts/style.css +++ b/mu-plugins/global-fonts/style.css @@ -802,3 +802,4 @@ src: url(./IBMPlexMono/IBMPlexMono-BoldItalic-latin.woff2?ver=a96c20e7edc2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; } +