Jake Vanderwerf
2026-08-07 a8ff85042ffbfe94b678fd818c02deb613bfd116
inc/integrations/Integrations.php
@@ -59,6 +59,7 @@
      $this->userID = $userID;
      $this->cache = Cache::for('integrations_' . $this->cacheName);
      $this->getPostTypes();
      $this->getTaxonomies();
      $this->getUsers();
@@ -262,7 +263,7 @@
      }
      try {
         if ($this->isOAuthService && !$this->hasOAuthCredentials()){
         if (!$this->hasOAuthCredentials()){
            //If this is an OAuth service, we might only be saving the app credentials first
            $result = true;
         } else {
@@ -400,7 +401,10 @@
      if (!empty($this->syncPostTypes)) {
         $this->addSavePost();
         if (method_exists($this, 'addSavePost')) {
            $this->addSavePost();
         }
         add_action('transition_post_status', [$this, 'handlePostStatusTransition'], 10, 3);
         if ($this->canSync['delete']) {
@@ -489,10 +493,7 @@
   public function hasOAuthCredentials(?int $userID = null): bool
   {
      if ($userID !== $this->userID) {
         $this->switchUser($userID);
      }
      return $this->hasOAuth && $this->hasValidOAuth();
      return false;
   }
@@ -546,7 +547,7 @@
   public static function hasExtraOptions():bool
   {
      return static::getInstance()::$hasExtraOptions;
      return self::$hasExtraOptions;
   }
   /**