From cb1ba74cda03097b3c10ce4aa1784ecad492d089 Mon Sep 17 00:00:00 2001 From: Matthew Blott Date: Fri, 23 Sep 2022 15:40:59 +0100 Subject: [PATCH] Fix redirect error on deleteZip method Currently when the user deletes the zip file the page doesn't redirect correctly and the user receives a 404 message. This patch fixes this. --- src/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller.php b/src/Controller.php index e6385d2..ebfead0 100755 --- a/src/Controller.php +++ b/src/Controller.php @@ -74,7 +74,7 @@ public function deleteZip( string $processed_site_path ) : void { unlink( $zip_path ); } - wp_safe_redirect( admin_url( 'admin.php?page=wp2static-zip' ) ); + wp_safe_redirect( admin_url( 'admin.php?page=wp2static-addon-zip' ) ); exit; }