Skip to content

Commit b7a7ac6

Browse files
author
Marco Pereirinha
committed
Syncing flag should only be set if auto sync is enabled
1 parent f11d629 commit b7a7ac6

File tree

1 file changed

+1
-1
lines changed
  • cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function is_synced( $post_id ) {
109109
return true;
110110
}
111111

112-
if ( apply_filters( 'cloudinary_flag_sync', '__return_false' ) && ! get_post_meta( $post_id, Sync::META_KEYS['downloading'], true ) ) {
112+
if ( $this->plugin->components['settings']->is_auto_sync_enabled() && apply_filters( 'cloudinary_flag_sync', '__return_false' ) && ! get_post_meta( $post_id, Sync::META_KEYS['downloading'], true ) ) {
113113
update_post_meta( $post_id, Sync::META_KEYS['syncing'], true );
114114
}
115115

0 commit comments

Comments
 (0)