From 5aa5965d6c9ba88a0d1c7cba5572bbc6042cfafd Mon Sep 17 00:00:00 2001 From: Primathon Date: Mon, 4 Jul 2022 16:28:52 -0600 Subject: [PATCH] Added options to search WooCommerce log files if WC was detected --- includes/class-directory-iterator.php | 4 ++++ includes/class-string-locator.php | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/includes/class-directory-iterator.php b/includes/class-directory-iterator.php index 13f1704..d516146 100644 --- a/includes/class-directory-iterator.php +++ b/includes/class-directory-iterator.php @@ -135,6 +135,10 @@ private function prepare_scan_path( $option ) { $data['path'] = WP_CONTENT_DIR; $data['type'] = 'core'; break; + case ( 'wc-logs' === $option ): + $data['path'] = WP_CONTENT_DIR . '/uploads/wc-logs'; + $data['type'] = 'core'; + break; } if ( empty( $data['path'] ) ) { diff --git a/includes/class-string-locator.php b/includes/class-string-locator.php index 1e01305..887a275 100644 --- a/includes/class-string-locator.php +++ b/includes/class-string-locator.php @@ -60,8 +60,13 @@ public function add_search_options( $searchers, $search_location ) { ob_start(); ?> - - + + + + + + +