Commit 6b68573a authored by Erick Hitter's avatar Erick Hitter Committed by GitHub
Browse files

Merge pull request #15 from Automattic/fix/wpcli

Turns out, there's no harm in letting it run for CLI commands
parents 31ec80a0 6c222043
......@@ -11,11 +11,6 @@ class Main extends Singleton {
* Register hooks
*/
protected function class_init() {
// For now, leave WP-CLI alone
if ( defined( 'WP_CLI' ) && WP_CLI ) {
return;
}
// Bail when plugin conditions aren't met
if ( ! defined( '\WP_CRON_CONTROL_SECRET' ) ) {
add_action( 'admin_notices', array( $this, 'admin_notice' ) );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment