Skip to content

Commit 9dbc20a

Browse files
author
Marco Pereirinha
committed
Prevent variable polution
1 parent 218ce8d commit 9dbc20a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

php/sync/class-storage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ public function sync( $attachment_id ) {
189189
switch ( $this->settings['offload'] ) {
190190
case 'cld':
191191
$this->remove_local_assets( $attachment_id );
192-
$url = $this->media->cloudinary_url( $attachment_id, false );
193-
$url = remove_query_arg( '_i', $url );
194-
update_post_meta( $attachment_id, '_wp_attached_file', $url );
192+
$cloudinary_url = $this->media->cloudinary_url( $attachment_id, false );
193+
$cloudinary_url = remove_query_arg( '_i', $cloudinary_url );
194+
update_post_meta( $attachment_id, '_wp_attached_file', $cloudinary_url );
195195
break;
196196
case 'dual_low':
197197
$transformations = $this->media->get_transformation_from_meta( $attachment_id );

0 commit comments

Comments
 (0)