Skip to content

Commit 7f48bf0

Browse files
Remove make URL relative code
Merge fix from Fonts API: WordPress/gutenberg#51178
1 parent 60b3fe7 commit 7f48bf0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/wp-includes/script-loader.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3522,13 +3522,6 @@ function _wp_theme_json_webfonts_handler() {
35223522

35233523
foreach ( $value as $item ) {
35243524

3525-
if (
3526-
str_starts_with( $item['url'], site_url() ) ||
3527-
str_starts_with( $item['url'], home_url() )
3528-
) {
3529-
$item['url'] = wp_make_link_relative( $item['url'] );
3530-
}
3531-
35323525
$src .= ( 'data' === $item['format'] )
35333526
? ", url({$item['url']})"
35343527
: ", url('{$item['url']}') format('{$item['format']}')";

0 commit comments

Comments
 (0)