diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-sync.php b/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-sync.php index 20ec262e4..f9dc2b2f5 100644 --- a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-sync.php +++ b/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-sync.php @@ -108,10 +108,12 @@ public function enqueue_assets() { * Register Assets. */ public function register_assets() { - // Setup the sync_base_structure. - $this->setup_sync_base_struct(); - // Setup sync types. - $this->setup_sync_types(); + if ( $this->plugin->config['connect'] ) { + // Setup the sync_base_structure. + $this->setup_sync_base_struct(); + // Setup sync types. + $this->setup_sync_types(); + } }