Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions lib/fewbricks.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,16 @@ public static function construct()

}

} else {
} else if ( defined( 'WP_CLI' ) && WP_CLI ) {
//added in case something goes wrong and we need to deactivate the plugin from WP CLI!
if( self::acf_exists() &&
self::fewbricks_hidden_exists() &&
self::fewbricks_template_dir_exists())
{
self::add_fewbricks_hidden_activated_check();
self::init();
}
} else {
// Not in admin system, so assume that all is good.

self::init();
Expand Down Expand Up @@ -351,4 +360,4 @@ private static function init_messages()

}

}
}