Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ public function filter_out_local( $content ) {
}

$content = str_replace( $asset, $new_tag, $content );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be simplified to

Suggested change
$content = str_replace( $asset, $new_tag, $content );
$content = str_replace( array( $asset, $url ), array( $new_tag, $cloudinary_url ), $content );

// Additional URL change for backgrounds etc..
$content = str_replace( $url, $cloudinary_url, $content );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the change suggested above is used, this line can be removed 😄

}

return $this->filter_video_shortcodes( $content );
Expand Down