From 2478fc988a3fd544168b61315961f5f4cd4dc53d Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Wed, 5 May 2021 16:22:27 +0100 Subject: [PATCH] Allow to sync not fully synced assets on manual sync --- php/sync/class-upload-sync.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php/sync/class-upload-sync.php b/php/sync/class-upload-sync.php index b07e39192..2362776a9 100644 --- a/php/sync/class-upload-sync.php +++ b/php/sync/class-upload-sync.php @@ -162,7 +162,10 @@ public function handle_bulk_actions( $location, $action, $post_ids ) { } // It's required to perform a new sync that Cloudinary and WordPress storage is set. - if ( 'dual_full' !== $this->plugin->settings->find_setting( 'offload' )->get_value() ) { + if ( + 'dual_full' !== $this->plugin->settings->find_setting( 'offload' )->get_value() && + $this->plugin->components['sync']->is_synced( $post_id ) + ) { continue; }