File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments