From ae420d8b938964af6a50ceffac24c4303a992af9 Mon Sep 17 00:00:00 2001 From: Paul Schreiber Date: Mon, 3 Jul 2023 15:57:55 -0400 Subject: [PATCH] Don't warn about a `.maintenance` file in the root directory (#114) * don't warn about .maintenance file * fix: add tests for .maintenance --- features/checksum-core.feature | 9 +++++++++ src/Checksum_Core_Command.php | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) 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: + """ + 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/' )