mirror of
https://ghproxy.net/https://github.com/elementor/wp2static-addon-netlify.git
synced 2025-10-04 07:21:38 +08:00
fix CLI cmd activation issue
This commit is contained in:
parent
e4f9a3175e
commit
095d4ea913
2 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ class CLI {
|
||||||
* @param string[] $args CLI args
|
* @param string[] $args CLI args
|
||||||
* @param string[] $assoc_args CLI args
|
* @param string[] $assoc_args CLI args
|
||||||
*/
|
*/
|
||||||
public function netlify(
|
public static function netlify(
|
||||||
array $args,
|
array $args,
|
||||||
array $assoc_args
|
array $assoc_args
|
||||||
) : void {
|
) : void {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* Plugin Name: WP2Static Add-on: Netlify Deployment
|
* Plugin Name: WP2Static Add-on: Netlify Deployment
|
||||||
* Plugin URI: https://wp2static.com
|
* Plugin URI: https://wp2static.com
|
||||||
* Description: Netlify deployment add-on for WP2Static.
|
* Description: Netlify deployment add-on for WP2Static.
|
||||||
* Version: 1.0
|
* Version: 1.0.1-dev
|
||||||
* Author: Leon Stafford
|
* Author: Leon Stafford
|
||||||
* Author URI: https://ljs.dev
|
* Author URI: https://ljs.dev
|
||||||
* License: Unlicense
|
* License: Unlicense
|
||||||
|
@ -17,7 +17,7 @@ if ( ! defined( 'WPINC' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
define( 'WP2STATIC_NETLIFY_PATH', plugin_dir_path( __FILE__ ) );
|
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' ) ) {
|
if ( file_exists( WP2STATIC_NETLIFY_PATH . 'vendor/autoload.php' ) ) {
|
||||||
require WP2STATIC_NETLIFY_PATH . 'vendor/autoload.php';
|
require WP2STATIC_NETLIFY_PATH . 'vendor/autoload.php';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue