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 ) {