Changeset 3339173
- Timestamp:
- 08/04/2025 06:00:19 PM (8 months ago)
- Location:
- speedy-search
- Files:
-
- 14 edited
- 1 copied
-
tags/1.4.2 (copied) (copied from speedy-search/trunk)
-
tags/1.4.2/css/frontend/style.css (modified) (1 diff)
-
tags/1.4.2/includes/classes/Backend/Notices.php (modified) (2 diffs)
-
tags/1.4.2/includes/classes/Updater.php (modified) (2 diffs)
-
tags/1.4.2/js/frontend/advanced.js (modified) (1 diff)
-
tags/1.4.2/readme.txt (modified) (2 diffs)
-
tags/1.4.2/speedy-search.php (modified) (1 diff)
-
tags/1.4.2/templates/snappy-search-advanced-search-form.php (modified) (2 diffs)
-
trunk/css/frontend/style.css (modified) (1 diff)
-
trunk/includes/classes/Backend/Notices.php (modified) (2 diffs)
-
trunk/includes/classes/Updater.php (modified) (2 diffs)
-
trunk/js/frontend/advanced.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/speedy-search.php (modified) (1 diff)
-
trunk/templates/snappy-search-advanced-search-form.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
speedy-search/tags/1.4.2/css/frontend/style.css
r3338345 r3339173 284 284 } 285 285 286 .speedy-search-container .search-error { 287 color: #ff0000; 288 } 289 286 290 @keyframes rotate { 287 291 100% {transform: rotate(360deg)} -
speedy-search/tags/1.4.2/includes/classes/Backend/Notices.php
r3338334 r3339173 42 42 $this->notice_140(); 43 43 } 44 if ($this->version == '1.4.2') { 45 $this->notice_142(); 46 } 44 47 } 45 48 } … … 79 82 } 80 83 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 81 100 public function dismiss_notice() { 82 101 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 73 73 update_option('speedy_search_version_polyplugins', $stored_version); 74 74 } 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 } 75 83 } 76 84 … … 121 129 } 122 130 131 private function update_to_142() { 132 update_option('speedy_search_notice_dismissed_polyplugins', false); 133 } 134 123 135 } -
speedy-search/tags/1.4.2/js/frontend/advanced.js
r3338345 r3339173 122 122 let $container = $(".speedy-search-container.advanced-search"); 123 123 124 performSearch($query, $container); 124 if ($query.length >= characters) { 125 performSearch($query, $container); 126 } 125 127 } 126 128 -
speedy-search/tags/1.4.2/readme.txt
r3338345 r3339173 3 3 Tags: instant search, search, wp, snappy search, woocommerce 4 4 Tested up to: 6.8 5 Stable tag: 1.4. 15 Stable tag: 1.4.2 6 6 Requires PHP: 7.4 7 7 License: GPLv3 … … 99 99 == Changelog == 100 100 101 = 1.4.2 = 102 * Bugfix: No search results error when directly visiting advanced search page 103 101 104 = 1.4.1 = 102 105 * Bugfix: Advanced search styling max height -
speedy-search/tags/1.4.2/speedy-search.php
r3338345 r3339173 4 4 * Plugin Name: Snappy Search 5 5 * Description: A fast, lightweight search plugin powered by TNTSearch, indexing posts for instant, accurate results. 6 * Version: 1.4. 16 * Version: 1.4.2 7 7 * Requires at least: 6.5 8 8 * Requires PHP: 7.4 -
speedy-search/tags/1.4.2/templates/snappy-search-advanced-search-form.php
r3338334 r3339173 6 6 $popular_options = Utils::get_option('popular'); 7 7 $popular_enabled = isset($popular_options['enabled']) ? $popular_options['enabled'] : 0; 8 $characters = Utils::get_option('characters'); 8 9 $advanced_options = Utils::get_option('advanced'); 9 10 $advanced_placeholder = isset($advanced_options['placeholder']) ? $advanced_options['placeholder'] : 'Search...'; … … 22 23 <span class="loader" style="display: none;"></span> 23 24 </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; ?> 24 29 25 30 <?php if (!$is_indexing) : ?> -
speedy-search/trunk/css/frontend/style.css
r3338345 r3339173 284 284 } 285 285 286 .speedy-search-container .search-error { 287 color: #ff0000; 288 } 289 286 290 @keyframes rotate { 287 291 100% {transform: rotate(360deg)} -
speedy-search/trunk/includes/classes/Backend/Notices.php
r3338334 r3339173 42 42 $this->notice_140(); 43 43 } 44 if ($this->version == '1.4.2') { 45 $this->notice_142(); 46 } 44 47 } 45 48 } … … 79 82 } 80 83 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 81 100 public function dismiss_notice() { 82 101 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 73 73 update_option('speedy_search_version_polyplugins', $stored_version); 74 74 } 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 } 75 83 } 76 84 … … 121 129 } 122 130 131 private function update_to_142() { 132 update_option('speedy_search_notice_dismissed_polyplugins', false); 133 } 134 123 135 } -
speedy-search/trunk/js/frontend/advanced.js
r3338345 r3339173 122 122 let $container = $(".speedy-search-container.advanced-search"); 123 123 124 performSearch($query, $container); 124 if ($query.length >= characters) { 125 performSearch($query, $container); 126 } 125 127 } 126 128 -
speedy-search/trunk/readme.txt
r3338345 r3339173 3 3 Tags: instant search, search, wp, snappy search, woocommerce 4 4 Tested up to: 6.8 5 Stable tag: 1.4. 15 Stable tag: 1.4.2 6 6 Requires PHP: 7.4 7 7 License: GPLv3 … … 99 99 == Changelog == 100 100 101 = 1.4.2 = 102 * Bugfix: No search results error when directly visiting advanced search page 103 101 104 = 1.4.1 = 102 105 * Bugfix: Advanced search styling max height -
speedy-search/trunk/speedy-search.php
r3338345 r3339173 4 4 * Plugin Name: Snappy Search 5 5 * Description: A fast, lightweight search plugin powered by TNTSearch, indexing posts for instant, accurate results. 6 * Version: 1.4. 16 * Version: 1.4.2 7 7 * Requires at least: 6.5 8 8 * Requires PHP: 7.4 -
speedy-search/trunk/templates/snappy-search-advanced-search-form.php
r3338334 r3339173 6 6 $popular_options = Utils::get_option('popular'); 7 7 $popular_enabled = isset($popular_options['enabled']) ? $popular_options['enabled'] : 0; 8 $characters = Utils::get_option('characters'); 8 9 $advanced_options = Utils::get_option('advanced'); 9 10 $advanced_placeholder = isset($advanced_options['placeholder']) ? $advanced_options['placeholder'] : 'Search...'; … … 22 23 <span class="loader" style="display: none;"></span> 23 24 </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; ?> 24 29 25 30 <?php if (!$is_indexing) : ?>
Note: See TracChangeset
for help on using the changeset viewer.