From c0eb1c5788dd4b085097d381f74a99b26e882537 Mon Sep 17 00:00:00 2001 From: David Cramer Date: Tue, 22 Sep 2020 10:06:00 +0200 Subject: [PATCH] replace old URL in content for other instances of the local URL --- .../php/media/class-filter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-filter.php b/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-filter.php index 93b39205e..1989d1804 100644 --- a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-filter.php +++ b/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-filter.php @@ -378,6 +378,8 @@ public function filter_out_local( $content ) { } $content = str_replace( $asset, $new_tag, $content ); + // Additional URL change for backgrounds etc.. + $content = str_replace( $url, $cloudinary_url, $content ); } return $this->filter_video_shortcodes( $content );