Jake Vanderwerf
2026-09-13 1aa7c404dae63c9518468fe9b579fad819f8d871
inc/integrations/SyncToPost.php
@@ -13,7 +13,6 @@
trait SyncToPost
{
   use SyncTo, SyncHelpers, UserConnection;
   public function addSavePost():void
   {
      if (!has_action('save_post', [$this, 'handleSavePost'])) {
@@ -28,6 +27,8 @@
   {
      if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return;
      if (wp_is_post_revision($postID) || wp_is_post_autosave($postID)) return;
      if (isset(self::$syncing['posts'][$postID])) return;
      self::$syncing['posts'][$postID] = true;
      error_log('=== ['.$this->service_name.']::handleSavePost called');
@@ -70,6 +71,7 @@
      $this->removeSavePost();
      $this->handleTheSavePost($postID, $post, $update, $settings);
      $this->addSavePost();
      unset(self::$syncing['posts'][$postID]);
   }
   /**
    * Handle post save for syncing