diff --git a/classes/class-plugin.php b/classes/class-plugin.php index 287516020..752793aa6 100755 --- a/classes/class-plugin.php +++ b/classes/class-plugin.php @@ -101,6 +101,8 @@ public function __construct() { if ( is_admin() || ( defined( 'WP_STREAM_DEV_DEBUG' ) && WP_STREAM_DEV_DEBUG ) ) { $this->admin = new Admin( $this ); $this->install = new Install( $this ); + } else if ( defined( 'DOING_CRON' ) && DOING_CRON ) { + $this->admin = new Admin( $this ); } // Load WP-CLI command