Skip to content

Commit fa226f1

Browse files
authored
Admin if fix (#9)
* fix: add is admin if * fix: version number
1 parent f6a02aa commit fa226f1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cerberus-plugins-manager.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Plugin Name: Cerberus Plugins Manager
55
* Description: Manages the cerberus plugins
6-
* Version: 1.0.7
6+
* Version: 1.0.8
77
* Requires at least: 5.7
88
* Author: Casey
99
*/
@@ -13,5 +13,7 @@
1313

1414
require_once "vendor/autoload.php";
1515

16-
$settingsPage = new SettingsPage(__FILE__);
17-
$pluginUpdater = new PluginUpdater(__FILE__, 'cerberus-plugins-manager');
16+
if ( is_admin() ) {
17+
$settingsPage = new SettingsPage( __FILE__ );
18+
$pluginUpdater = new PluginUpdater( __FILE__, 'cerberus-plugins-manager' );
19+
}

0 commit comments

Comments
 (0)