From 477b87b5a44c59f561818ae4a0a3f5b070d74a6a Mon Sep 17 00:00:00 2001 From: gdh Date: Mon, 5 Jan 2026 15:35:01 +0000 Subject: [PATCH 1/2] Update 1984-hosting-support.php --- 1984-hosting-support.php | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/1984-hosting-support.php b/1984-hosting-support.php index 6597503..932a57a 100644 --- a/1984-hosting-support.php +++ b/1984-hosting-support.php @@ -272,18 +272,21 @@ class HostingSupport1984 { * * @return string[] */ - private function get_protected_plugins(): array { - // Always protect this plugin from deactivation/deletion. - $own = plugin_basename( __FILE__ ); - $protected = array( $own ); - - // Additionally protect Patchstack - but only while it is active. - if ( $this->is_patchstack_active() ) { - $protected[] = 'patchstack/patchstack.php'; + private function get_protected_plugins(): array { + if ( ! $this->is_patchstack_active() ) { + return array(); } - return $protected; - } + // Protect this plugin. + $own = plugin_basename( __FILE__ ); + $protected = array( $own ); + + // Also protect Patchstack. + $protected[] = 'patchstack/patchstack.php'; + + return $protected; + } + /** * Intercept admin actions attempting to deactivate or delete protected plugins and block them. -- 2.39.5 From 085b1ccf31f531165806e5954b919f602aa8d5a6 Mon Sep 17 00:00:00 2001 From: gdh Date: Mon, 5 Jan 2026 15:35:44 +0000 Subject: [PATCH 2/2] Update 1984-hosting-support.php --- 1984-hosting-support.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1984-hosting-support.php b/1984-hosting-support.php index 932a57a..f4764a8 100644 --- a/1984-hosting-support.php +++ b/1984-hosting-support.php @@ -2,7 +2,7 @@ /* * Plugin Name: 1984 Hosting Support - * Version: 1.1.0 + * Version: 1.1.1 * Author: 1984 ehf. * Author URI: https://1984.hosting * Description: Support plugin for 1984 Hosting customers. -- 2.39.5