Skip to content

Commit 847f0c2

Browse files
authored
Merge branch 'UAT' into revert-133-feature/unique-filesnames
2 parents 0600246 + e167366 commit 847f0c2

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Cloudinary
44
* Plugin URI: https://cloudinary.com/documentation/wordpress_integration
55
* Description: With the Cloudinary plugin, you can upload and manage your media assets in the cloud, then deliver them to your users through a fast content delivery network, improving your website’s loading speed and overall user experience. Apply multiple transformations and take advantage of a full digital asset management solution without leaving WordPress.
6-
* Version: 2.1.7
6+
* Version: 2.1.8
77
* Author: Cloudinary Ltd., XWP
88
* Author URI: https://cloudinary.com/
99
* License: GPLv2+

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ public function prepare_upload( $post, $down_sync = false ) {
368368
if ( true === $down_sync ) {
369369
$download = $this->plugin->components['sync']->managers['download']->down_sync( $post->ID );
370370
if ( is_wp_error( $download ) ) {
371+
delete_post_meta( $post->ID, Sync::META_KEYS['downloading'] );
371372
update_post_meta( $post->ID, Sync::META_KEYS['sync_error'], $download->get_error_message() );
372373

373374
return new \WP_Error( 'attachment_download_error', $download->get_error_message() );
@@ -619,6 +620,7 @@ public function push_attachments( $attachments ) {
619620
$error = $result->get_error_message();
620621
$stats['fail'][] = $error;
621622
$media->update_post_meta( $attachment->ID, Sync::META_KEYS['sync_error'], $error );
623+
delete_post_meta( $attachment->ID, Sync::META_KEYS['syncing'] );
622624
continue;
623625
}
624626

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ public function mark( $id, $type = 'done' ) {
140140
$queue[ $type ][] = '<div>' . basename( $file ) . ': ' . $state->get_error_message() . '</div>';
141141
// Add a flag that this file had an error as to not try process it again.
142142
update_post_meta( $id, Sync::META_KEYS['sync_error'], $state->get_error_message() );
143+
delete_post_meta( $id, Sync::META_KEYS['syncing'], $state->get_error_message() );
143144
}
144145
} else {
145146
if ( ! in_array( $id, $queue[ $type ], true ) ) {

0 commit comments

Comments
 (0)