Plugin Directory

Changeset 3339173


Ignore:
Timestamp:
08/04/2025 06:00:19 PM (8 months ago)
Author:
polyplugins
Message:

Update to version 1.4.2 from GitHub

Location:
speedy-search
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • speedy-search/tags/1.4.2/css/frontend/style.css

    r3338345 r3339173  
    284284}
    285285
     286.speedy-search-container .search-error {
     287  color: #ff0000;
     288}
     289
    286290@keyframes rotate {
    287291  100%   {transform: rotate(360deg)}
  • speedy-search/tags/1.4.2/includes/classes/Backend/Notices.php

    r3338334 r3339173  
    4242        $this->notice_140();
    4343      }
     44      if ($this->version == '1.4.2') {
     45        $this->notice_142();
     46      }
    4447    }
    4548  }
     
    7982  }
    8083
     84  public function notice_142() {
     85    ?>
     86    <div class="notice notice-error is-dismissible speedy-search" style="padding-bottom: 10px;">
     87      <p><?php echo esc_html__('Starting with version 1.5.0, Snappy Search will include functionality offered by our ', 'speedy-search'); ?>
     88      <a href="https://wordpress.org/plugins/admin-instant-search/" target="_blank">Admin Instant Search</a>
     89      <?php echo esc_html__(' plugin. As part of this update, the plugin will gain the ability to index WooCommerce orders, which introduces additional security considerations.', 'speedy-search'); ?>
     90      <br /><br />
     91      <?php echo esc_html__('To support this securely and efficiently, we are ', 'speedy-search'); ?><strong><?php echo esc_html__('discontinuing support for SQLite', 'speedy-search'); ?></strong><?php echo esc_html__('. Managing mixed database logic (SQLite and MySQL) adds unnecessary complexity and overhead, particularly when handling sensitive data like order information.', 'speedy-search'); ?>
     92      <br /><br />
     93      <strong?><?php echo esc_html__('Before updating to 1.5.0, please ensure your site is using MySQL.', 'speedy-search'); ?></strong>
     94      <?php echo esc_html__('If your site is still using SQLite, search functionality will be automatically disabled after the update.', 'speedy-search'); ?></p>
     95      <a href="options-general.php?page=speedy-search"><?php echo esc_html__('Switch to MySQL', 'speedy-search'); ?></a>
     96    </div>
     97    <?php
     98  }
     99
    81100  public function dismiss_notice() {
    82101    if (!isset($_POST['nonce']) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['nonce'])), 'speedy_search_dismiss_notice_nonce')) {
  • speedy-search/tags/1.4.2/includes/classes/Updater.php

    r3338334 r3339173  
    7373      update_option('speedy_search_version_polyplugins', $stored_version);
    7474    }
     75
     76    if (version_compare($stored_version, '1.4.2', '<')) {
     77      $stored_version = '1.4.2';
     78
     79      $this->update_to_142();
     80
     81      update_option('speedy_search_version_polyplugins', $stored_version);
     82    }
    7583  }
    7684
     
    121129  }
    122130
     131  private function update_to_142() {
     132    update_option('speedy_search_notice_dismissed_polyplugins', false);
     133  }
     134
    123135}
  • speedy-search/tags/1.4.2/js/frontend/advanced.js

    r3338345 r3339173  
    122122    let $container = $(".speedy-search-container.advanced-search");
    123123   
    124     performSearch($query, $container);
     124    if ($query.length >= characters) {
     125      performSearch($query, $container);
     126    }
    125127  }
    126128
  • speedy-search/tags/1.4.2/readme.txt

    r3338345 r3339173  
    33Tags: instant search, search, wp, snappy search, woocommerce
    44Tested up to: 6.8
    5 Stable tag: 1.4.1
     5Stable tag: 1.4.2
    66Requires PHP: 7.4
    77License: GPLv3
     
    9999== Changelog ==
    100100
     101= 1.4.2 =
     102* Bugfix: No search results error when directly visiting advanced search page
     103
    101104= 1.4.1 =
    102105* Bugfix: Advanced search styling max height
  • speedy-search/tags/1.4.2/speedy-search.php

    r3338345 r3339173  
    44 * Plugin Name: Snappy Search
    55 * Description: A fast, lightweight search plugin powered by TNTSearch, indexing posts for instant, accurate results.
    6  * Version: 1.4.1
     6 * Version: 1.4.2
    77 * Requires at least: 6.5
    88 * Requires PHP: 7.4
  • speedy-search/tags/1.4.2/templates/snappy-search-advanced-search-form.php

    r3338334 r3339173  
    66$popular_options      = Utils::get_option('popular');
    77$popular_enabled      = isset($popular_options['enabled']) ? $popular_options['enabled'] : 0;
     8$characters           = Utils::get_option('characters');
    89$advanced_options     = Utils::get_option('advanced');
    910$advanced_placeholder = isset($advanced_options['placeholder']) ? $advanced_options['placeholder'] : 'Search...';
     
    2223    <span class="loader" style="display: none;"></span>
    2324  </form>
     25
     26  <?php if (strlen(trim($search)) < $characters && strlen(trim($search)) > 0)  : ?>
     27    <p class="search-error">Your search could not be completed because it needs to be at least <?php echo esc_html($characters); ?> characters.</p>
     28  <?php endif; ?>
    2429 
    2530  <?php if (!$is_indexing) : ?>
  • speedy-search/trunk/css/frontend/style.css

    r3338345 r3339173  
    284284}
    285285
     286.speedy-search-container .search-error {
     287  color: #ff0000;
     288}
     289
    286290@keyframes rotate {
    287291  100%   {transform: rotate(360deg)}
  • speedy-search/trunk/includes/classes/Backend/Notices.php

    r3338334 r3339173  
    4242        $this->notice_140();
    4343      }
     44      if ($this->version == '1.4.2') {
     45        $this->notice_142();
     46      }
    4447    }
    4548  }
     
    7982  }
    8083
     84  public function notice_142() {
     85    ?>
     86    <div class="notice notice-error is-dismissible speedy-search" style="padding-bottom: 10px;">
     87      <p><?php echo esc_html__('Starting with version 1.5.0, Snappy Search will include functionality offered by our ', 'speedy-search'); ?>
     88      <a href="https://wordpress.org/plugins/admin-instant-search/" target="_blank">Admin Instant Search</a>
     89      <?php echo esc_html__(' plugin. As part of this update, the plugin will gain the ability to index WooCommerce orders, which introduces additional security considerations.', 'speedy-search'); ?>
     90      <br /><br />
     91      <?php echo esc_html__('To support this securely and efficiently, we are ', 'speedy-search'); ?><strong><?php echo esc_html__('discontinuing support for SQLite', 'speedy-search'); ?></strong><?php echo esc_html__('. Managing mixed database logic (SQLite and MySQL) adds unnecessary complexity and overhead, particularly when handling sensitive data like order information.', 'speedy-search'); ?>
     92      <br /><br />
     93      <strong?><?php echo esc_html__('Before updating to 1.5.0, please ensure your site is using MySQL.', 'speedy-search'); ?></strong>
     94      <?php echo esc_html__('If your site is still using SQLite, search functionality will be automatically disabled after the update.', 'speedy-search'); ?></p>
     95      <a href="options-general.php?page=speedy-search"><?php echo esc_html__('Switch to MySQL', 'speedy-search'); ?></a>
     96    </div>
     97    <?php
     98  }
     99
    81100  public function dismiss_notice() {
    82101    if (!isset($_POST['nonce']) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['nonce'])), 'speedy_search_dismiss_notice_nonce')) {
  • speedy-search/trunk/includes/classes/Updater.php

    r3338334 r3339173  
    7373      update_option('speedy_search_version_polyplugins', $stored_version);
    7474    }
     75
     76    if (version_compare($stored_version, '1.4.2', '<')) {
     77      $stored_version = '1.4.2';
     78
     79      $this->update_to_142();
     80
     81      update_option('speedy_search_version_polyplugins', $stored_version);
     82    }
    7583  }
    7684
     
    121129  }
    122130
     131  private function update_to_142() {
     132    update_option('speedy_search_notice_dismissed_polyplugins', false);
     133  }
     134
    123135}
  • speedy-search/trunk/js/frontend/advanced.js

    r3338345 r3339173  
    122122    let $container = $(".speedy-search-container.advanced-search");
    123123   
    124     performSearch($query, $container);
     124    if ($query.length >= characters) {
     125      performSearch($query, $container);
     126    }
    125127  }
    126128
  • speedy-search/trunk/readme.txt

    r3338345 r3339173  
    33Tags: instant search, search, wp, snappy search, woocommerce
    44Tested up to: 6.8
    5 Stable tag: 1.4.1
     5Stable tag: 1.4.2
    66Requires PHP: 7.4
    77License: GPLv3
     
    9999== Changelog ==
    100100
     101= 1.4.2 =
     102* Bugfix: No search results error when directly visiting advanced search page
     103
    101104= 1.4.1 =
    102105* Bugfix: Advanced search styling max height
  • speedy-search/trunk/speedy-search.php

    r3338345 r3339173  
    44 * Plugin Name: Snappy Search
    55 * Description: A fast, lightweight search plugin powered by TNTSearch, indexing posts for instant, accurate results.
    6  * Version: 1.4.1
     6 * Version: 1.4.2
    77 * Requires at least: 6.5
    88 * Requires PHP: 7.4
  • speedy-search/trunk/templates/snappy-search-advanced-search-form.php

    r3338334 r3339173  
    66$popular_options      = Utils::get_option('popular');
    77$popular_enabled      = isset($popular_options['enabled']) ? $popular_options['enabled'] : 0;
     8$characters           = Utils::get_option('characters');
    89$advanced_options     = Utils::get_option('advanced');
    910$advanced_placeholder = isset($advanced_options['placeholder']) ? $advanced_options['placeholder'] : 'Search...';
     
    2223    <span class="loader" style="display: none;"></span>
    2324  </form>
     25
     26  <?php if (strlen(trim($search)) < $characters && strlen(trim($search)) > 0)  : ?>
     27    <p class="search-error">Your search could not be completed because it needs to be at least <?php echo esc_html($characters); ?> characters.</p>
     28  <?php endif; ?>
    2429 
    2530  <?php if (!$is_indexing) : ?>
Note: See TracChangeset for help on using the changeset viewer.