Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
when --include-root is enabled, skip entire wp-content directory from…
… extra file checks
  • Loading branch information
paulschreiber committed Mar 23, 2023
commit e3e19368d4e24a982bd58965ee3b7fbb7fbbc8e4
2 changes: 1 addition & 1 deletion src/Checksum_Core_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function __invoke( $args, $assoc_args ) {
*/
protected function filter_file( $filepath, $include_root = false ) {
if ( true === $this->include_root ) {
return ( 1 !== preg_match( '/^(wp-config\.php|wp-content\/plugins)$/', $filepath ) );
return ( 1 !== preg_match( '/^(wp-config\.php$|wp-content\/)/', $filepath ) );
}

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