From a8ff85042ffbfe94b678fd818c02deb613bfd116 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 07 Aug 2026 20:42:54 +0000
Subject: [PATCH] =Continuing on with Integrations setup. Working on PostMark now
---
inc/integrations/Integrations.php | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/inc/integrations/Integrations.php b/inc/integrations/Integrations.php
index f055894..262f798 100644
--- a/inc/integrations/Integrations.php
+++ b/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;
}
/**
--
Gitblit v1.10.0