From a9654f00c8fbc9934289d761843ddd071025013f Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 28 Aug 2026 17:20:28 +0000
Subject: [PATCH] =PHPStorm Code Inspection: fixed class reference errors (from getting rid of JVB() and replacing with direct class::getInstance; as well as general code sniffing, etc
---
inc/integrations/SyncToPost.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/inc/integrations/SyncToPost.php b/inc/integrations/SyncToPost.php
index ae53b41..17e93cd 100644
--- a/inc/integrations/SyncToPost.php
+++ b/inc/integrations/SyncToPost.php
@@ -22,7 +22,7 @@
}
public function removeSavePost():void
{
- remove_action('save_post', [$this, 'handleSavePost'], 20, 3);
+ remove_action('save_post', [$this, 'handleSavePost'], 20);
}
public function handleSavePost(int $postID, WP_Post $post, bool $update):void
{
@@ -104,7 +104,7 @@
}
public function removeDeletePost():void
{
- remove_action('before_delete_post', [$this, 'handleSavePost'], 20, 3);
+ remove_action('before_delete_post', [$this, 'handleSavePost'], 20);
}
public function handleDeletePost(int $postID):void
{
--
Gitblit v1.10.0