Skip to content

Commit 7e3e291

Browse files
author
Marco Pereirinha
committed
No need for the suffix if we are downloading the asset
1 parent c4e38a1 commit 7e3e291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-push-sync.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ public function prepare_upload( $post, $push_sync = false ) {
542542
$suffix_data = wp_parse_args( $suffix_meta, $suffix_defaults );
543543

544544
// Prepare a uniqueness check and get a suffix if needed.
545-
if ( true === $push_sync ) {
545+
if ( true === $push_sync && true !== $downsync ) {
546546
if ( $public_id !== $suffix_data['public_id'] || empty( $suffix_data['suffix'] ) ) {
547547
$suffix_data['suffix'] = $this->sync->add_suffix_maybe( $public_id, $post->ID );
548548
if ( ! empty( $suffix_data['suffix'] ) ) {

0 commit comments

Comments
 (0)