Skip to content

Commit d7b661b

Browse files
author
Marco Pereirinha
committed
Force the recheck
1 parent 218ce8d commit d7b661b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/traits/trait-cli.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ protected function process_sync( $posts, $total ) {
199199
$filename = self::pad_name( basename( $file ), 20, ' ', '*' );
200200
$bar->tick( 1, 'Syncing (' . ( $done ) . ' of ' . $total . ') : ' . $filename );
201201
if (
202-
! $this->plugin->get_component( 'sync' )->is_synced( $asset )
202+
! $this->plugin->get_component( 'sync' )->is_synced( $asset, true )
203203
&& $this->plugin->get_component( 'media' )->is_local_media( $asset )
204204
&& $this->plugin->get_component( 'sync' )->is_syncable( $asset )
205205
) {
@@ -248,7 +248,7 @@ protected function process_analyze( $posts, $total ) {
248248
) {
249249
// Add a key.
250250
$key = '_cld_synced';
251-
if ( ! $this->plugin->get_component( 'sync' )->is_synced( $asset ) ) {
251+
if ( ! $this->plugin->get_component( 'sync' )->is_synced( $asset, true ) ) {
252252
$key = '_cld_unsynced';
253253
add_post_meta( $asset, $key, true, true );
254254
}

0 commit comments

Comments
 (0)