Skip to content

Commit

Permalink
Merge pull request #880 from wrongware/develop
Browse files Browse the repository at this point in the history
Fix wp-cli plugin activation #858
  • Loading branch information
Luke Carbis authored Sep 15, 2016
2 parents 6e4cca7 + e86b07a commit e0d9beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit e0d9beb

Please sign in to comment.