From 236c737da100c26ebd19ec1f460ff14f6a2395c5 Mon Sep 17 00:00:00 2001 From: John Shaffer Date: Tue, 14 Dec 2021 22:30:51 -0600 Subject: [PATCH] Always fire post-deploy action from the CLI. Fixes #843 --- CHANGELOG.md | 1 + src/CLI.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ab5e26a..40c95d4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ - [#837](https://github.com/leonstafford/wp2static/pull/837): Require PHP 7.4 or later; bump dependencies @leonstafford - [#811](https://github.com/leonstafford/wp2static/issues/811): Optimize FilesHelper::getListOfLocalFilesByDir @bookwyrm - [#805](https://github.com/leonstafford/wp2static/issues/805): Fix warning on cache page when there are no deployment namespaces @john-shaffer + - [#843](https://github.com/leonstafford/wp2static/issues/843): Always fire post-deployment action from the CLI, matching the normal behavior @michaelfig ## WP2Static 7.1.7 (2021-09-04) diff --git a/src/CLI.php b/src/CLI.php index ebdb867d..bd9bc02a 100755 --- a/src/CLI.php +++ b/src/CLI.php @@ -114,8 +114,9 @@ public function deploy( } else { WsLog::l( 'Starting deployment' ); do_action( 'wp2static_deploy', ProcessedSite::getPath(), $deployer ); - do_action( 'wp2static_post_deploy_trigger', $deployer ); } + WsLog::l( 'Starting post-deployment actions' ); + do_action( 'wp2static_post_deploy_trigger', $deployer ); } /**