fix CLI cmd activation issue

This commit is contained in:
Leon 2020-12-04 15:41:44 +11:00
parent e4f9a3175e
commit 095d4ea913
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ class CLI {
* @param string[] $args CLI args
* @param string[] $assoc_args CLI args
*/
public function netlify(
public static function netlify(
array $args,
array $assoc_args
) : void {

View file

@ -4,7 +4,7 @@
* Plugin Name: WP2Static Add-on: Netlify Deployment
* Plugin URI: https://wp2static.com
* Description: Netlify deployment add-on for WP2Static.
* Version: 1.0
* Version: 1.0.1-dev
* Author: Leon Stafford
* Author URI: https://ljs.dev
* License: Unlicense
@ -17,7 +17,7 @@ if ( ! defined( 'WPINC' ) ) {
}

define( 'WP2STATIC_NETLIFY_PATH', plugin_dir_path( __FILE__ ) );
define( 'WP2STATIC_NETLIFY_VERSION', '1.0' );
define( 'WP2STATIC_NETLIFY_VERSION', '1.0.1-dev' );

if ( file_exists( WP2STATIC_NETLIFY_PATH . 'vendor/autoload.php' ) ) {
require WP2STATIC_NETLIFY_PATH . 'vendor/autoload.php';