From 9318732f077775cab2d01b6eb8d15a6abc20a847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Sat, 17 Aug 2024 13:55:15 +0200 Subject: [PATCH] Added multisite support --- includes/setup.php | 1 + includes/update.class.php | 2 +- modules/LimitLoginAttempts/includes/gui_elements.php | 8 ++++---- modules/calendar/Views/settings-form.php | 4 +++- modules/seo/Views/seo-form.php | 4 +++- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/includes/setup.php b/includes/setup.php index 681534b..1832cc7 100644 --- a/includes/setup.php +++ b/includes/setup.php @@ -82,5 +82,6 @@ function kompass_load_ajax_content() { $loginHandler = new LoginHandler(); new BdpVersionChecker(); + #add_filter( 'plugins_api', array( $class, 'info' ), 20, 3 ); require_once dirname(__FILE__) . '/action_caller.php'; diff --git a/includes/update.class.php b/includes/update.class.php index 42783e9..8443da8 100644 --- a/includes/update.class.php +++ b/includes/update.class.php @@ -11,7 +11,7 @@ class BdpVersionChecker public function __construct() { - $plugin_data = get_plugin_data( BDP_LV_STARTUP_FILE ); + $plugin_data = get_plugin_data( BDP_LV_STARTUP_FILE, true, false ); $this->plugin_slug = BDP_LV_PLUGIN_SLUG; $this->updateUrl = $plugin_data['UpdateURI'] . '/info.json'; $this->version = $plugin_data['Version']; diff --git a/modules/LimitLoginAttempts/includes/gui_elements.php b/modules/LimitLoginAttempts/includes/gui_elements.php index 3070c18..20a0652 100644 --- a/modules/LimitLoginAttempts/includes/gui_elements.php +++ b/modules/LimitLoginAttempts/includes/gui_elements.php @@ -1,8 +1,5 @@