From fa226f133859ed7da66177e49090ab2fd59c311f Mon Sep 17 00:00:00 2001 From: caseyreuter <108796446+caseyreuter@users.noreply.github.com> Date: Tue, 4 Jul 2023 13:41:52 +0200 Subject: [PATCH] Admin if fix (#9) * fix: add is admin if * fix: version number --- cerberus-plugins-manager.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cerberus-plugins-manager.php b/cerberus-plugins-manager.php index 7c231fa..a91dfc8 100644 --- a/cerberus-plugins-manager.php +++ b/cerberus-plugins-manager.php @@ -3,7 +3,7 @@ /** * Plugin Name: Cerberus Plugins Manager * Description: Manages the cerberus plugins - * Version: 1.0.7 + * Version: 1.0.8 * Requires at least: 5.7 * Author: Casey */ @@ -13,5 +13,7 @@ require_once "vendor/autoload.php"; -$settingsPage = new SettingsPage(__FILE__); -$pluginUpdater = new PluginUpdater(__FILE__, 'cerberus-plugins-manager'); +if ( is_admin() ) { + $settingsPage = new SettingsPage( __FILE__ ); + $pluginUpdater = new PluginUpdater( __FILE__, 'cerberus-plugins-manager' ); +}