From e86b07a693855df80dcdf4deff2613e72998f41d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20=C5=A0=C3=ADma?= Date: Thu, 15 Sep 2016 09:56:10 +0200 Subject: [PATCH] Fix wp-cli plugin activation --- classes/class-plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/class-plugin.php b/classes/class-plugin.php index 027807398..32beea725 100755 --- a/classes/class-plugin.php +++ b/classes/class-plugin.php @@ -98,7 +98,7 @@ public function __construct() { add_action( 'wp_head', array( $this, 'frontend_indicator' ) ); // Load admin area classes - if ( is_admin() || ( defined( 'WP_STREAM_DEV_DEBUG' ) && WP_STREAM_DEV_DEBUG ) ) { + if ( is_admin() || ( defined( 'WP_STREAM_DEV_DEBUG' ) && WP_STREAM_DEV_DEBUG ) || ( defined( 'WP_CLI' ) && WP_CLI ) ) { $this->admin = new Admin( $this ); $this->install = new Install( $this ); } elseif ( defined( 'DOING_CRON' ) && DOING_CRON ) {