From 7f48bf0a0f1a2bbf78f9dd4e221c2e66aa44736a Mon Sep 17 00:00:00 2001 From: Brian Alexander <824344+ironprogrammer@users.noreply.github.com> Date: Thu, 29 Jun 2023 10:58:09 -0700 Subject: [PATCH] Remove make URL relative code Merge fix from Fonts API: https://github.com/WordPress/gutenberg/pull/51178 --- src/wp-includes/script-loader.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 3de06605f1977..3a7915129eddc 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -3522,13 +3522,6 @@ function _wp_theme_json_webfonts_handler() { 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']}')";