diff --git a/package.json b/package.json index 7201950..54eeef6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wp-logs", - "version": "1.1.5", + "version": "1.1.6", "private": true, "scripts": { "build": "grunt build" diff --git a/shazzad-wp-logs.php b/shazzad-wp-logs.php index 6e1aecf..7bb17ef 100644 --- a/shazzad-wp-logs.php +++ b/shazzad-wp-logs.php @@ -3,7 +3,7 @@ * Plugin Name: Shazzad Wp Logs * Plugin URI: https://w4dev.com * Description: Store and view logs for debugging. - * Version: 1.1.5 + * Version: 1.1.6 * Requires at least: 4.4.0 * Requires PHP: 5.5 * Author: Shazzad Hossain Khan @@ -24,7 +24,7 @@ return; } -define( 'SWPL_VERSION', '1.1.5' ); +define( 'SWPL_VERSION', '1.1.6' ); function swpl_missing_vendor_notice() { ?> @@ -71,7 +71,8 @@ function swpl_install() { } register_activation_hook( SWPL_PLUGIN_FILE, 'swpl_install' ); -if ( defined( 'WP_CLI' ) && WP_CLI ) { +// Dev cli command. +if ( defined( 'WP_CLI' ) && WP_CLI && file_exists( __DIR__ . '/commands/GenerateLogsCommand.php' ) ) { require_once __DIR__ . '/commands/GenerateLogsCommand.php'; }