From e4f9a3175e182f777916f7c76b8610dfb21ac711 Mon Sep 17 00:00:00 2001 From: Leon Date: Sat, 28 Nov 2020 15:43:33 +1030 Subject: [PATCH] fix action arg num --- src/Controller.php | 2 +- wp2static-addon-netlify.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller.php b/src/Controller.php index f8068f2..aa9ea87 100755 --- a/src/Controller.php +++ b/src/Controller.php @@ -20,7 +20,7 @@ public function run() : void { 'wp2static_deploy', [ $this, 'deploy' ], 15, - 1 + 2 ); add_action( diff --git a/wp2static-addon-netlify.php b/wp2static-addon-netlify.php index 0ee76d8..a90ec03 100644 --- a/wp2static-addon-netlify.php +++ b/wp2static-addon-netlify.php @@ -23,7 +23,7 @@ require WP2STATIC_NETLIFY_PATH . 'vendor/autoload.php'; } -function run_wp2static_addon_netlify() { +function run_wp2static_addon_netlify() : void { $controller = new WP2StaticNetlify\Controller(); $controller->run(); }