Skip to content

Commit 7a948d0

Browse files
committed
remove transformation string since it's already in meta
1 parent c916459 commit 7a948d0

File tree

1 file changed

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

1 file changed

+0
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,6 @@ public function filter_out_cloudinary( $data ) {
266266
if ( $this->media->is_cloudinary_url( $local_url ) ) {
267267
continue;
268268
}
269-
$inherit_transformations = $this->media->get_transformation_from_meta( $attachment_id );
270-
$transformations = $this->media->get_transformations_from_string( $url );
271-
$transformations = array_filter( $transformations );
272-
if ( ! empty( $transformations ) && $inherit_transformations !== $transformations ) {
273-
$transformations = Api::generate_transformation_string( $transformations );
274-
$local_url = add_query_arg( 'cld_params', $transformations, $local_url );
275-
}
276269
// Replace old tag.
277270
$content = str_replace( $url, $local_url, $content );
278271

0 commit comments

Comments
 (0)