Skip to content

Commit bb06d57

Browse files
authored
Merge pull request #212 from cloudinary/fix/replace-urls-in-content
replace old URL in content for other instances of the local URL
2 parents 4153b8d + c0eb1c5 commit bb06d57

File tree

1 file changed

+2
-0
lines changed
  • cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media

1 file changed

+2
-0
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-filter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ public function filter_out_local( $content ) {
378378
}
379379

380380
$content = str_replace( $asset, $new_tag, $content );
381+
// Additional URL change for backgrounds etc..
382+
$content = str_replace( $url, $cloudinary_url, $content );
381383
}
382384

383385
return $this->filter_video_shortcodes( $content );

0 commit comments

Comments
 (0)