From d12011c24fe66f2d0ffd8eb678c53f9ccef5894f Mon Sep 17 00:00:00 2001 From: Paul Schreiber Date: Mon, 26 Jun 2023 11:04:22 -0400 Subject: [PATCH 1/2] don't warn about .maintenance file --- src/Checksum_Core_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Checksum_Core_Command.php b/src/Checksum_Core_Command.php index a6d76cba..321b89a4 100644 --- a/src/Checksum_Core_Command.php +++ b/src/Checksum_Core_Command.php @@ -151,7 +151,7 @@ public function __invoke( $args, $assoc_args ) { */ protected function filter_file( $filepath ) { if ( true === $this->include_root ) { - return ( 1 !== preg_match( '/^(\.htaccess$|wp-config\.php$|wp-content\/)/', $filepath ) ); + return ( 1 !== preg_match( '/^(\.htaccess$|\.maintenance$|wp-config\.php$|wp-content\/)/', $filepath ) ); } return ( 0 === strpos( $filepath, 'wp-admin/' ) From 671ca188a15bbc8a49f5ce00e4fa00438b98b225 Mon Sep 17 00:00:00 2001 From: Paul Schreiber Date: Thu, 29 Jun 2023 21:45:12 -0400 Subject: [PATCH 2/2] fix: add tests for .maintenance --- features/checksum-core.feature | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/features/checksum-core.feature b/features/checksum-core.feature index f58e26f0..2f1463a3 100644 --- a/features/checksum-core.feature +++ b/features/checksum-core.feature @@ -151,6 +151,11 @@ Feature: Validate checksums for WordPress install """ # BEGIN WordPress """ + And a .maintenance file: + """ +