Skip to content

Commit 31f15fc

Browse files
committed
when --allow-root is set, do not warn about wp-config.php and wp-contents/plugins/*
1 parent 1893b47 commit 31f15fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Checksum_Core_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function __invoke( $args, $assoc_args ) {
145145
*/
146146
protected function filter_file( $filepath, $include_root = false ) {
147147
if ( true === $this->include_root ) {
148-
return true;
148+
return ( 1 !== preg_match( '/^(wp-config\.php|wp-content\/plugins)$/', $filepath ) );
149149
}
150150

151151
return ( 0 === strpos( $filepath, 'wp-admin/' )

0 commit comments

Comments
 (0)