Plugin Directory

Changeset 3323766


Ignore:
Timestamp:
07/07/2025 03:56:27 PM (9 months ago)
Author:
markwolters
Message:

Search Insights 2.1

Location:
wp-search-insights/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-search-insights/trunk/class-search.php

    r3298215 r3323766  
    320320
    321321        public function get_regular_search() {
     322
    322323            global $wp_query;
    323324
     
    468469            // Skip terms exceeding configured limit
    469470            if (strlen($search_term) > 255) {
     471                return;
     472            }
     473
     474            // Check for spam (always enabled unless constant override)
     475            // Update spam filter statistics
     476            WPSI::$spam_filter->update_stats('checked');
     477
     478            if (WPSI::$spam_filter->is_spam($search_term)) {
     479                // Update spam filter statistics
     480                WPSI::$spam_filter->update_stats('blocked');
     481
     482                // Allow logging of blocked spam terms
     483                do_action('wpsi_spam_blocked', $search_term);
     484
    470485                return;
    471486            }
     
    14961511            ]);
    14971512        }
     1513
    14981514    }
    14991515}
  • wp-search-insights/trunk/readme.txt

    r3298215 r3323766  
    77Tested up to: 6.8
    88Requires PHP: 7.0
    9 Stable tag: 2.0
     9Stable tag: 2.1
    1010
    1111Uncover exactly what visitors search for on your site. Stop guessing what content to create, fix content gaps, and boost engagement.
     
    114114
    115115== Changelog ==
     116= 2.1. =
     117* Improvement: greatly improved filtering of spammy search terms
     118
    116119= 2.0
    117120* New: Rebranded from "WP Search Insights" to "Search Insights" with dedicated admin menu
  • wp-search-insights/trunk/uninstall.php

    r3298215 r3323766  
    4949        'wpsi_database_postids_upgrade_completed',
    5050        'wpsi_tour_cancelled',
     51        'wpsi_spam_filter_stats',
    5152        'wpsi_version_two_installation_time'
    5253    );
  • wp-search-insights/trunk/wp-search-insights.php

    r3298215 r3323766  
    55 * License: GPLv2
    66 * Description: Uncover exactly what visitors search for on your site. Make data-driven content decisions, identify content gaps, and improve user experience with privacy-focused search analytics.
    7  * Version: 2.0
     7 * Version: 2.1
    88 * Text Domain: wp-search-insights
    99 * Domain Path: /languages
     
    6363        public static $help;
    6464        public static $export;
     65        public static $spam_filter;
    6566
    6667        private function __construct()
     
    6970            $this->includes();
    7071
     72            self::$spam_filter = new WPSI_Spam_Filter();
    7173            self::$search = new search();
    7274
     
    109111            define('wpsi_plugin_file', __FILE__);
    110112
    111             define('wpsi_version', '2.0');
     113            define('wpsi_version', '2.1');
    112114        }
    113115
     
    133135
    134136            require_once(wpsi_path . 'class-search.php');
     137            require_once(wpsi_path . 'includes/class-spam-filter.php');
    135138            require_once(wpsi_path . 'integrations/integrations.php');
    136139        }
Note: See TracChangeset for help on using the changeset viewer.