Skip to content

Commit 3921b04

Browse files
authored
Merge pull request #34 from PolyPlugins/releases/1.5.2
1.5.2
2 parents db9382f + c508d64 commit 3921b04

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

README.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ By default, it will index 10 posts per minute.
8383

8484
## Changelog
8585

86+
### 1.5.2
87+
* Bugfix: WooCommerce orders admin will sometimes close if opened in new tab
88+
* Bugfix: Searching orders will fail if orders were not indexed
89+
8690
### 1.5.1
8791
* Added: Custom tokenizer for future use
8892
* Updated: Product indexing to handle SKUs with and without dashes.

includes/classes/Backend/Enqueue.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,13 @@ public function enqueue($hook_suffix) {
6565
}
6666

6767
if ($hook_suffix === 'woocommerce_page_wc-orders') {
68-
$this->enqueue_order_styles();
69-
$this->enqueue_order_scripts();
68+
$order_options = Utils::get_option('orders');
69+
$orders_enabled = isset($order_options['enabled']) ? $order_options['enabled'] : 0;
70+
71+
if ($orders_enabled) {
72+
$this->enqueue_order_styles();
73+
$this->enqueue_order_scripts();
74+
}
7075
}
7176
}
7277

js/backend/orders.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jQuery(document).ready(function ($) {
2020

2121
function init() {
2222
listener();
23-
close();
2423
}
2524

2625
function listener() {

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Contributors: polyplugins
33
Tags: instant search, search, wp, snappy search, woocommerce
44
Tested up to: 6.8
5-
Stable tag: 1.5.1
5+
Stable tag: 1.5.2
66
Requires PHP: 7.4
77
License: GPLv3
88
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -100,6 +100,10 @@ By default it will index 10 posts per minute.
100100

101101
== Changelog ==
102102

103+
= 1.5.2 =
104+
* Bugfix: WooCommerce orders admin will sometimes close if opened in new tab
105+
* Bugfix: Searching orders will fail if orders were not indexed
106+
103107
= 1.5.1 =
104108
* Added: Custom tokenizer for future use
105109
* Updated: Product indexing to handle SKUs with and without dashes.

speedy-search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Plugin Name: Snappy Search
55
* Description: A fast, lightweight search plugin powered by TNTSearch, indexing posts for instant, accurate results.
6-
* Version: 1.5.1
6+
* Version: 1.5.2
77
* Requires at least: 6.5
88
* Requires PHP: 7.4
99
* Author: Poly Plugins

0 commit comments

Comments
 (0)