From affd0a413ea3d53ecec06156066c05eced5ef127 Mon Sep 17 00:00:00 2001 From: mostafa-hisham Date: Wed, 27 Sep 2023 09:51:34 +0300 Subject: [PATCH] fix bg ll with WPML --- inc/Engine/Media/Lazyload/CSS/Front/Extractor.php | 4 ++-- inc/Engine/Media/Lazyload/CSS/Subscriber.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/Engine/Media/Lazyload/CSS/Front/Extractor.php b/inc/Engine/Media/Lazyload/CSS/Front/Extractor.php index 8eb9529d86..2a43ca02a9 100644 --- a/inc/Engine/Media/Lazyload/CSS/Front/Extractor.php +++ b/inc/Engine/Media/Lazyload/CSS/Front/Extractor.php @@ -197,7 +197,7 @@ protected function make_url_complete( string $url ): string { return $url; } - return home_url() . '/' . trim( $url, '/ ' ); + return rocket_get_home_url() . '/' . trim( $url, '/ ' ); } /** @@ -213,7 +213,7 @@ protected function is_url_external( string $url ): bool { return false; } - $home_host = wp_parse_url( home_url(), PHP_URL_HOST ); + $home_host = wp_parse_url( rocket_get_home_url(), PHP_URL_HOST ); return $host !== $home_host; } diff --git a/inc/Engine/Media/Lazyload/CSS/Subscriber.php b/inc/Engine/Media/Lazyload/CSS/Subscriber.php index 56b9e1a780..37c3993460 100644 --- a/inc/Engine/Media/Lazyload/CSS/Subscriber.php +++ b/inc/Engine/Media/Lazyload/CSS/Subscriber.php @@ -530,7 +530,7 @@ protected function is_excluded( string $string ) { $parsed_url_host = wp_parse_url( $string, PHP_URL_HOST ); if ( ! $parsed_url_host ) { - $values [] = home_url() . $string; + $values [] = rocket_get_home_url() . $string; } /**