Verified Commit 6c222043 authored by Erick Hitter's avatar Erick Hitter
Browse files

Turns out, there's no harm in letting it run for CLI commands

parent 31ec80a0
...@@ -11,11 +11,6 @@ class Main extends Singleton { ...@@ -11,11 +11,6 @@ class Main extends Singleton {
* Register hooks * Register hooks
*/ */
protected function class_init() { protected function class_init() {
// For now, leave WP-CLI alone
if ( defined( 'WP_CLI' ) && WP_CLI ) {
return;
}
// Bail when plugin conditions aren't met // Bail when plugin conditions aren't met
if ( ! defined( '\WP_CRON_CONTROL_SECRET' ) ) { if ( ! defined( '\WP_CRON_CONTROL_SECRET' ) ) {
add_action( 'admin_notices', array( $this, 'admin_notice' ) ); 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