Skip to content

Commit

Permalink
Merge pull request #9 from shazzad/cli-loading
Browse files Browse the repository at this point in the history
Fixed command file loading error on production site
  • Loading branch information
shazzad authored Dec 12, 2024
2 parents 66eb73f + 590ce56 commit ca96852
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wp-logs",
"version": "1.1.5",
"version": "1.1.6",
"private": true,
"scripts": {
"build": "grunt build"
Expand Down
7 changes: 4 additions & 3 deletions shazzad-wp-logs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,7 +24,7 @@
return;
}

define( 'SWPL_VERSION', '1.1.5' );
define( 'SWPL_VERSION', '1.1.6' );

function swpl_missing_vendor_notice() {
?>
Expand Down Expand Up @@ -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';
}

Expand Down

0 comments on commit ca96852

Please sign in to comment.