We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc6637d commit 192661aCopy full SHA for 192661a
inc/front/cdn.php
@@ -142,6 +142,7 @@ function rocket_cdn_images( $html ) {
142
// Image path is relative, apply the host to it
143
if ( empty( $host ) ) {
144
$image_url = $home_url . ltrim( $image_url, '/' );
145
+ $host = parse_url( $image_url, PHP_URL_HOST );
146
}
147
148
// Check if the link isn't external
@@ -305,4 +306,4 @@ function rocket_cdn_enqueue( $src ) {
305
306
307
308
return $src;
-}
309
+}
0 commit comments