From 5921e681cba79ddaef62172f99fe554208d569bd Mon Sep 17 00:00:00 2001 From: thrijith Date: Sun, 5 Jul 2020 17:25:05 +0530 Subject: [PATCH 1/2] Update delimiter used in preg_quote --- src/Find_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Find_Command.php b/src/Find_Command.php index b8953d9..a5f5e14 100644 --- a/src/Find_Command.php +++ b/src/Find_Command.php @@ -234,7 +234,7 @@ private function recurse_directory( $path ) { // Don't recurse directories that probably don't have a WordPress installation. if ( ! $this->skip_ignored_paths ) { // Assume base path doesn't need comparison - $compared_path = preg_replace( '#^' . preg_quote( $this->base_path, '/' ) . '#', '', $path ); + $compared_path = preg_replace( '#^' . preg_quote( $this->base_path, '#' ) . '#', '', $path ); // Ignore all hidden system directories $bits = explode( '/', trim( $compared_path, '/' ) ); $current_dir = array_pop( $bits ); From b0731a5376cec339bbb912a6b04c49edbf1bae4a Mon Sep 17 00:00:00 2001 From: thrijith Date: Sun, 5 Jul 2020 19:12:08 +0530 Subject: [PATCH 2/2] Fix travis config validation issue --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9f1b70c..9ac2387 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -sudo: false +os: linux dist: trusty language: php