Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions includes/class-directory-iterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ) ) {
Expand Down
9 changes: 7 additions & 2 deletions includes/class-string-locator.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,13 @@ public function add_search_options( $searchers, $search_location ) {
ob_start();
?>
<optgroup label="<?php esc_attr_e( 'Core', 'string-locator' ); ?>">
<option value="core"><?php esc_html_e( 'The whole WordPress directory', 'string-locator' ); ?></option>
<option value="wp-content"><?php esc_html_e( 'Everything under wp-content', 'string-locator' ); ?></option>
<option value="core"><?php esc_html_e( 'The whole WordPress directory', 'string-locator' ); ?></option>
<option value="wp-content"><?php esc_html_e( 'Everything under wp-content', 'string-locator' ); ?></option>

<?php if ( function_exists( 'wc_get_logger' ) ) : ?>
<option value="wc-logs"><?php esc_html_e( 'WooCommerce Log Files', 'string-locator' ); ?></option>
<?php endif; ?>

</optgroup>
<optgroup label="<?php esc_attr_e( 'Themes', 'string-locator' ); ?>">
<?php echo String_Locator::get_themes_options( $search_location ); ?>
Expand Down