From 025e70df467bdb2051a85217f88246a70580eae0 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Wed, 5 Jul 2023 12:34:21 +0000 Subject: [PATCH] Editor: Fix font paths in iframed editor. By making font asset files URLs absolute instead of relative, this ensures each font asset file does properly relate to the actual location of the files. See https://github.com/WordPress/gutenberg/pull/50875. Props ironprogrammer, antonvlasenko, ndiego, shuvo247, robinwpdeveloper. Fixes #58672. Built from https://develop.svn.wordpress.org/trunk@56139 git-svn-id: http://core.svn.wordpress.org/trunk@55651 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 8 -------- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 80f48d43a5..741e29ac18 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -3525,14 +3525,6 @@ function _wp_theme_json_webfonts_handler() { $src = ''; foreach ( $value as $item ) { - - if ( - str_starts_with( $item['url'], site_url() ) || - str_starts_with( $item['url'], home_url() ) - ) { - $item['url'] = wp_make_link_relative( $item['url'] ); - } - $src .= ( 'data' === $item['format'] ) ? ", url({$item['url']})" : ", url('{$item['url']}') format('{$item['format']}')"; diff --git a/wp-includes/version.php b/wp-includes/version.php index cbf35e4d80..44dccbb652 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-beta3-56138'; +$wp_version = '6.3-beta3-56139'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.