We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c31993 commit 8d5796aCopy full SHA for 8d5796a
cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-upgrade.php
@@ -162,6 +162,10 @@ function ( $val ) use ( $media ) {
162
$path = pathinfo( $public_id );
163
$public_id = strstr( $public_id, '.' . $path['extension'], true );
164
$this->media->update_post_meta( $attachment_id, Sync::META_KEYS['public_id'], $public_id );
165
+
166
+ // Flag the download
167
+ update_post_meta( $attachment_id, Sync::META_KEYS['downloading'], true );
168
169
if ( ! defined( 'DOING_BULK_SYNC' ) ) {
170
$this->sync->managers['upload']->add_to_sync( $attachment_id ); // Auto sync if upgrading outside of bulk sync.
171
}
0 commit comments