Ivory Search – WordPress Search Plugin - Version 5.2

Version Description

  • Fixed - For some plugins -1 appearing instead of search.
Download this release

Release Info

Developer vinod dalvi
Plugin Icon 128x128 Ivory Search – WordPress Search Plugin
Version 5.2
Comparing to
See all releases

Code changes from version 5.0 to 5.2

add-search-to-menu.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Ivory Search
5
  * Plugin URI: https://ivorysearch.com
6
  * Description: The WordPress Search plugin that includes Search Form Customizer, WooCommerce Search, Image Search, Search Shortcode, AJAX Search & Live Search support!
7
- * Version: 5.1
8
  * Author: Ivory Search
9
  * Author URI: https://ivorysearch.com/
10
  * License: GPL2+
@@ -110,7 +110,7 @@ final class Ivory_Search
110
  public function define_constants()
111
  {
112
  if ( !defined( 'IS_VERSION' ) ) {
113
- define( 'IS_VERSION', '5.1' );
114
  }
115
  if ( !defined( 'IS_PLUGIN_FILE' ) ) {
116
  define( 'IS_PLUGIN_FILE', __FILE__ );
@@ -227,4 +227,4 @@ add_action( 'plugins_loaded', 'ivory_search_start' );
227
  */
228
  $is = Ivory_Search::getInstance();
229
  $is->define_constants();
230
- require_once IS_PLUGIN_DIR . 'includes/freemius.php';
4
  * Plugin Name: Ivory Search
5
  * Plugin URI: https://ivorysearch.com
6
  * Description: The WordPress Search plugin that includes Search Form Customizer, WooCommerce Search, Image Search, Search Shortcode, AJAX Search & Live Search support!
7
+ * Version: 5.2
8
  * Author: Ivory Search
9
  * Author URI: https://ivorysearch.com/
10
  * License: GPL2+
110
  public function define_constants()
111
  {
112
  if ( !defined( 'IS_VERSION' ) ) {
113
+ define( 'IS_VERSION', '5.2' );
114
  }
115
  if ( !defined( 'IS_PLUGIN_FILE' ) ) {
116
  define( 'IS_PLUGIN_FILE', __FILE__ );
227
  */
228
  $is = Ivory_Search::getInstance();
229
  $is->define_constants();
230
+ require_once IS_PLUGIN_DIR . 'includes/freemius.php';
includes/class-is.php CHANGED
@@ -185,9 +185,7 @@ class IS_Loader {
185
  $index_mgr->init_index_hooks();
186
 
187
  $index_search = IS_Index_Search::getInstance();
188
- if ( ! is_admin() ){
189
- $index_search->init_hooks();
190
- }
191
  }
192
 
193
  /**
@@ -231,4 +229,4 @@ class IS_Loader {
231
  }
232
 
233
  $is_loader = IS_Loader::getInstance();
234
- add_shortcode( 'ivory-search', array( $is_loader, 'search_form_shortcode' ) );
185
  $index_mgr->init_index_hooks();
186
 
187
  $index_search = IS_Index_Search::getInstance();
188
+ $index_search->init_hooks();
 
 
189
  }
190
 
191
  /**
229
  }
230
 
231
  $is_loader = IS_Loader::getInstance();
232
+ add_shortcode( 'ivory-search', array( $is_loader, 'search_form_shortcode' ) );
languages/add-search-to-menu.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ivory Search\n"
5
- "POT-Creation-Date: 2021-12-20 11:12+0530\n"
6
  "PO-Revision-Date: 2020-03-17 21:05+0530\n"
7
  "Last-Translator: \n"
8
  "Language-Team: Ivory Search <admin@ivorysearch.com>\n"
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ivory Search\n"
5
+ "POT-Creation-Date: 2021-12-22 22:42+0530\n"
6
  "PO-Revision-Date: 2020-03-17 21:05+0530\n"
7
  "Last-Translator: \n"
8
  "Language-Team: Ivory Search <admin@ivorysearch.com>\n"
public/class-is-index-search.php CHANGED
@@ -85,7 +85,7 @@ class IS_Index_Search {
85
  }
86
 
87
  public function init_hooks() {
88
- // add_filter( 'posts_pre_query', array( $this, 'posts_pre_query' ), 99, 2 );
89
  }
90
 
91
  /**
@@ -99,7 +99,7 @@ class IS_Index_Search {
99
  */
100
  public function posts_pre_query( $posts, $wp_query ) {
101
  if ( $wp_query->is_search()
102
- && ( $wp_query->is_main_query() || check_ajax_referer( 'is_ajax_nonce', 'security' ) )
103
  && ! empty( $s = $wp_query->query_vars['s'] )
104
  ) {
105
 
85
  }
86
 
87
  public function init_hooks() {
88
+ add_filter( 'posts_pre_query', array( $this, 'posts_pre_query' ), 99, 2 );
89
  }
90
 
91
  /**
99
  */
100
  public function posts_pre_query( $posts, $wp_query ) {
101
  if ( $wp_query->is_search()
102
+ && ( $wp_query->is_main_query() || check_ajax_referer( 'is_ajax_nonce', 'security', false ) )
103
  && ! empty( $s = $wp_query->query_vars['s'] )
104
  ) {
105
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: search, woocommerce search, image search, ajax search, search shortcode, l
5
  Requires at least: 3.9
6
  Tested up to: 5.9
7
  Requires PHP: 5.2.4
8
- Stable tag: 5.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -197,8 +197,11 @@ Yes we do. We try our best to help free users with customisation requests and we
197
 
198
  == Changelog ==
199
 
 
 
 
200
  = 5.1 =
201
- * Fixed - Media library search in admin area wasnot working.
202
 
203
  = 5.0 =
204
  * Added - Faster search with inverted index-based search engine.
5
  Requires at least: 3.9
6
  Tested up to: 5.9
7
  Requires PHP: 5.2.4
8
+ Stable tag: 5.2
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
197
 
198
  == Changelog ==
199
 
200
+ = 5.2 =
201
+ * Fixed - For some plugins -1 appearing instead of search.
202
+
203
  = 5.1 =
204
+ * Fixed - Media library search in admin area was not working.
205
 
206
  = 5.0 =
207
  * Added - Faster search with inverted index-based search engine.