Skip to content

Commit

Permalink
Admin if fix (#9)
Browse files Browse the repository at this point in the history
* fix: add is admin if

* fix: version number
  • Loading branch information
caseyreuter authored Jul 4, 2023
1 parent f6a02aa commit fa226f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cerberus-plugins-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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' );
}

0 comments on commit fa226f1

Please sign in to comment.