Ivory Search – WordPress Search Plugin - Version 4.8.2

Version Description

  • Fixed - Plugin template file is-ajax-results.php was not overriding.
Download this release

Release Info

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

Code changes from version 4.8.1 to 4.8.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: 4.8.1
8
  * Author: Ivory Search
9
  * Author URI: https://ivorysearch.com/
10
  * License: GPL2+
@@ -13,7 +13,7 @@
13
  * Text Domain: add-search-to-menu
14
  *
15
  *
16
- * WC tested up to: 5.8
17
  *
18
  * Ivory Search is free software: you can redistribute it and/or modify
19
  * it under the terms of the GNU General Public License as published by
@@ -110,7 +110,7 @@ final class Ivory_Search
110
  private function define_constants()
111
  {
112
  if ( !defined( 'IS_VERSION' ) ) {
113
- define( 'IS_VERSION', '4.8.1' );
114
  }
115
  if ( !defined( 'IS_PLUGIN_FILE' ) ) {
116
  define( 'IS_PLUGIN_FILE', __FILE__ );
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: 4.8.2
8
  * Author: Ivory Search
9
  * Author URI: https://ivorysearch.com/
10
  * License: GPL2+
13
  * Text Domain: add-search-to-menu
14
  *
15
  *
16
+ * WC tested up to: 5.9
17
  *
18
  * Ivory Search is free software: you can redistribute it and/or modify
19
  * it under the terms of the GNU General Public License as published by
110
  private function define_constants()
111
  {
112
  if ( !defined( 'IS_VERSION' ) ) {
113
+ define( 'IS_VERSION', '4.8.2' );
114
  }
115
  if ( !defined( 'IS_PLUGIN_FILE' ) ) {
116
  define( 'IS_PLUGIN_FILE', __FILE__ );
admin/class-is-editor.php CHANGED
@@ -947,7 +947,7 @@ class IS_Search_Editor
947
  if ( !$enable_customize ) {
948
  $customizer_url = "//" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
949
  }
950
- echo '<a style="font-size: 20px;font-weight: 800; padding: 25px 0;display: block;text-align: center;box-shadow:none;"class="is-customize-link" href="' . esc_url( $customizer_url ) . '">' . __( "Search Form Customizer", "ivory-search" ) . '</a>' ;
951
  }
952
 
953
  ?>
@@ -2021,6 +2021,7 @@ class IS_Search_Editor
2021
  $tax_objs = get_object_taxonomies( $post_type, 'objects' );
2022
 
2023
  if ( !empty($tax_objs) ) {
 
2024
  $html = '<div class="is-taxes">';
2025
  $selected_tax = false;
2026
  foreach ( $tax_objs as $key => $tax_obj ) {
@@ -2030,6 +2031,7 @@ class IS_Search_Editor
2030
  ) );
2031
 
2032
  if ( !empty($terms) && !empty($tax_obj->labels->name) ) {
 
2033
  $html .= '<div class="col-wrapper"><div class="col-title">';
2034
  $col_title = ucwords( str_replace( '-', ' ', str_replace( '_', ' ', esc_html( $tax_obj->labels->name ) ) ) );
2035
 
@@ -2047,24 +2049,28 @@ class IS_Search_Editor
2047
  }
2048
 
2049
  }
2050
- $html .= '<br /><label for="' . esc_attr( $id ) . '-tax_query" class="ctrl-multi-select">' . esc_html__( "Hold down the control (ctrl) or command button to select multiple options.", 'add-search-to-menu' ) . '</label><br />';
2051
- $html .= '</div>';
2052
- $checked = ( $selected_tax ? 'selected' : 'all' );
2053
- echo '<br /><p class="check-radio"><label for="' . esc_attr( $post_type ) . '-tax-search_all" ><input class="is-tax-select" type="radio" id="' . esc_attr( $post_type ) . '-tax-search_all" name="' . esc_attr( $post_type ) . 'i[tax_search_radio]" value="all" ' . checked( 'all', $checked, false ) . '/>' ;
2054
- echo '<span class="toggle-check-text"></span>' . sprintf(
2055
- esc_html__( "Do not exclude any %s from search of any taxonomies (%s categories, tags & terms %s)", 'add-search-to-menu' ),
2056
- strtolower( $post_types2[$post_type]->labels->singular_name ),
2057
- '<i>',
2058
- '</i>'
2059
- ) . '</label></p>' ;
2060
- echo '<p class="check-radio"><label for="' . esc_attr( $post_type ) . '-tax-search_selected" ><input class="is-tax-select" type="radio" id="' . esc_attr( $post_type ) . '-tax-search_selected" name="' . esc_attr( $post_type ) . 'i[tax_search_radio]" value="selected" ' . checked( 'selected', $checked, false ) . '/>' ;
2061
- echo '<span class="toggle-check-text"></span>' . sprintf(
2062
- esc_html__( "Exclude %s from search of selected taxonomies (%s categories, tags & terms %s)", 'add-search-to-menu' ),
2063
- strtolower( $post_types2[$post_type]->labels->name ),
2064
- '<i>',
2065
- '</i>'
2066
- ) . '</label></p>' ;
2067
- echo $html ;
 
 
 
 
2068
  }
2069
 
2070
  $meta_keys = $this->is_meta_keys( $post_type );
947
  if ( !$enable_customize ) {
948
  $customizer_url = "//" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
949
  }
950
+ echo '<a style="font-size: 20px;font-weight: 800; padding: 25px 0;display: block;text-align: center;box-shadow:none;"class="is-customize-link" href="' . esc_url( $customizer_url ) . '">' . __( "Search Form Customizer", "add-search-to-menu" ) . '</a>' ;
951
  }
952
 
953
  ?>
2021
  $tax_objs = get_object_taxonomies( $post_type, 'objects' );
2022
 
2023
  if ( !empty($tax_objs) ) {
2024
+ $terms_exist = false;
2025
  $html = '<div class="is-taxes">';
2026
  $selected_tax = false;
2027
  foreach ( $tax_objs as $key => $tax_obj ) {
2031
  ) );
2032
 
2033
  if ( !empty($terms) && !empty($tax_obj->labels->name) ) {
2034
+ $terms_exist = true;
2035
  $html .= '<div class="col-wrapper"><div class="col-title">';
2036
  $col_title = ucwords( str_replace( '-', ' ', str_replace( '_', ' ', esc_html( $tax_obj->labels->name ) ) ) );
2037
 
2049
  }
2050
 
2051
  }
2052
+
2053
+ if ( $terms_exist ) {
2054
+ $html .= '<br /><label for="' . esc_attr( $id ) . '-tax_query" class="ctrl-multi-select">' . esc_html__( "Hold down the control (ctrl) or command button to select multiple options.", 'add-search-to-menu' ) . '</label><br />';
2055
+ $html .= '</div>';
2056
+ $checked = ( $selected_tax ? 'selected' : 'all' );
2057
+ echo '<br /><p class="check-radio"><label for="' . esc_attr( $post_type ) . '-tax-search_all" ><input class="is-tax-select" type="radio" id="' . esc_attr( $post_type ) . '-tax-search_all" name="' . esc_attr( $post_type ) . 'i[tax_search_radio]" value="all" ' . checked( 'all', $checked, false ) . '/>' ;
2058
+ echo '<span class="toggle-check-text"></span>' . sprintf(
2059
+ esc_html__( "Do not exclude any %s from search of any taxonomies (%s categories, tags & terms %s)", 'add-search-to-menu' ),
2060
+ strtolower( $post_types2[$post_type]->labels->singular_name ),
2061
+ '<i>',
2062
+ '</i>'
2063
+ ) . '</label></p>' ;
2064
+ echo '<p class="check-radio"><label for="' . esc_attr( $post_type ) . '-tax-search_selected" ><input class="is-tax-select" type="radio" id="' . esc_attr( $post_type ) . '-tax-search_selected" name="' . esc_attr( $post_type ) . 'i[tax_search_radio]" value="selected" ' . checked( 'selected', $checked, false ) . '/>' ;
2065
+ echo '<span class="toggle-check-text"></span>' . sprintf(
2066
+ esc_html__( "Exclude %s from search of selected taxonomies (%s categories, tags & terms %s)", 'add-search-to-menu' ),
2067
+ strtolower( $post_types2[$post_type]->labels->name ),
2068
+ '<i>',
2069
+ '</i>'
2070
+ ) . '</label></p>' ;
2071
+ echo $html ;
2072
+ }
2073
+
2074
  }
2075
 
2076
  $meta_keys = $this->is_meta_keys( $post_type );
changelog.txt CHANGED
@@ -1,3 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  = 4.5.11 =
2
  * Fixed - Empty button accessibility issue.
3
 
1
+ = 4.7.1 =
2
+ * Improved - Code quality to adhere to WordPress development standards and improve safety/security.
3
+
4
+ = 4.7 =
5
+ * Fixed - IvoryAjaxVars is not defined error when JS file loading is disabled.
6
+ * Fixed - Security issue.
7
+
8
+ = 4.6.6 =
9
+ * Fixed - JavaScript error "Invalid value used as weak map key" in the AJAX search.
10
+
11
+ = 4.6.5 =
12
+ * Improved - Implemented simple scroll bar for AJAX search results.
13
+
14
+ = 4.6.4 =
15
+ * Fixed - AJAX was not working since last plugin version.
16
+
17
+ = 4.6.3 =
18
+ * Fixed - Notice displayed on creating new search form and in the plugin settings.
19
+ * Fixed - Full width menu search opening and closing issue.
20
+
21
+ = 4.6.2 =
22
+ * Fixed - Undefined tab index notice in admin area.
23
+
24
+ = 4.6.1 =
25
+ * Fixed - Broken AJAX search results scrollbar.
26
+ * Fixed – Security issue in plugin settings (Thanks to Jinson Varghese Behanan from Astra Security).
27
+ * Improved - Do not search special character stopwords.
28
+
29
+ = 4.6 =
30
+ * Fixed - AJAX search results was not scrolling on search form scroll.
31
+ * Fixed - Stopwords was not excluding from search.
32
+ * Fixed - Menu search icon accessibility issue.
33
+ * Updated - Freemius SDK to 2.4.2
34
+
35
  = 4.5.11 =
36
  * Fixed - Empty button accessibility issue.
37
 
includes/class-is-search-form.php CHANGED
@@ -531,7 +531,7 @@ class IS_Search_Form {
531
  }
532
  $result .= '</label>';
533
  if ( 'is-form-style-3' === $form_style ) {
534
- $result .= '<button type="submit" class="is-search-submit"><span class="is-screen-reader-text">'.__( 'Search Button', 'add-search-to-menu').'</span><span class="is-search-icon"><svg focusable="false" aria-label="' . __( "Search", "ivory-search" ) . '" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24px"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></svg></span></button>';
535
  } else if ( 'is-form-style-2' !== $form_style ) {
536
  $result .= '<input type="submit" value="' . esc_attr( $search_btn_text ) . '" class="is-search-submit" />';
537
  }
@@ -553,11 +553,11 @@ class IS_Search_Form {
553
  }
554
 
555
  if ( isset( $is_opt['easy_edit'] ) && is_user_logged_in() && current_user_can( 'administrator' ) ) {
556
- $result .= '<div class="is-link-container"><div><a class="is-edit-link" target="_blank" href="'.admin_url( 'admin.php?page=ivory-search&post='.absint( $args['id'] ).'&action=edit' ) . '">'.__( "Edit", "ivory-search") .'</a>';
557
 
558
  if ( ! is_customize_preview() ) {
559
  if ( $enabled_customization ) {
560
- $result .= ' <a class="is-customize-link" target="_blank" href="'.admin_url( 'customize.php?autofocus[section]=is_section_'.absint( $args['id'] ).'&url=' . get_the_permalink( get_the_ID() ) ) .'">'.__( "Customizer", "ivory-search") .'</a>';
561
  }
562
  }
563
  $result .= '</div></div>';
531
  }
532
  $result .= '</label>';
533
  if ( 'is-form-style-3' === $form_style ) {
534
+ $result .= '<button type="submit" class="is-search-submit"><span class="is-screen-reader-text">'.__( 'Search Button', 'add-search-to-menu').'</span><span class="is-search-icon"><svg focusable="false" aria-label="' . __( "Search", "add-search-to-menu" ) . '" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24px"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></svg></span></button>';
535
  } else if ( 'is-form-style-2' !== $form_style ) {
536
  $result .= '<input type="submit" value="' . esc_attr( $search_btn_text ) . '" class="is-search-submit" />';
537
  }
553
  }
554
 
555
  if ( isset( $is_opt['easy_edit'] ) && is_user_logged_in() && current_user_can( 'administrator' ) ) {
556
+ $result .= '<div class="is-link-container"><div><a class="is-edit-link" target="_blank" href="'.admin_url( 'admin.php?page=ivory-search&post='.absint( $args['id'] ).'&action=edit' ) . '">'.__( "Edit", "add-search-to-menu") .'</a>';
557
 
558
  if ( ! is_customize_preview() ) {
559
  if ( $enabled_customization ) {
560
+ $result .= ' <a class="is-customize-link" target="_blank" href="'.admin_url( 'customize.php?autofocus[section]=is_section_'.absint( $args['id'] ).'&url=' . get_the_permalink( get_the_ID() ) ) .'">'.__( "Customizer", "add-search-to-menu") .'</a>';
561
  }
562
  }
563
  $result .= '</div></div>';
includes/class-is.php CHANGED
@@ -157,7 +157,9 @@ class IS_Loader {
157
  add_filter( 'posts_distinct_request', array( $public, 'posts_distinct_request' ), 9999999, 2 );
158
  add_filter( 'posts_join' , array( $public, 'posts_join' ), 9999999, 2 );
159
  add_filter( 'posts_search', array( $public, 'posts_search' ), 9999999, 2 );
160
- add_action( 'pre_get_posts', array( $public, 'pre_get_posts' ), 9 );
 
 
161
  add_action( 'wp_footer', array( $public, 'wp_footer' ) );
162
  add_action( 'wp_head', array( $public, 'wp_head' ), 9999999 );
163
  }, 9999999 );
157
  add_filter( 'posts_distinct_request', array( $public, 'posts_distinct_request' ), 9999999, 2 );
158
  add_filter( 'posts_join' , array( $public, 'posts_join' ), 9999999, 2 );
159
  add_filter( 'posts_search', array( $public, 'posts_search' ), 9999999, 2 );
160
+ // Changed pre_get_posts priority from 9 to 9999999
161
+ // as product search restricted to category was not working in free plugin.
162
+ add_action( 'pre_get_posts', array( $public, 'pre_get_posts' ), 9999999 );
163
  add_action( 'wp_footer', array( $public, 'wp_footer' ) );
164
  add_action( 'wp_head', array( $public, 'wp_head' ), 9999999 );
165
  }, 9999999 );
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-11-08 21:54+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"
@@ -218,15 +218,15 @@ msgstr ""
218
 
219
  #: ../admin/class-is-editor.php:143 ../admin/class-is-editor.php:438
220
  #: ../admin/class-is-editor.php:801 ../admin/class-is-editor.php:1168
221
- #: ../admin/class-is-editor.php:1391 ../admin/class-is-editor.php:1486
222
- #: ../admin/class-is-editor.php:1602 ../admin/class-is-settings-fields.php:106
223
  msgid "Expand All"
224
  msgstr ""
225
 
226
  #: ../admin/class-is-editor.php:143 ../admin/class-is-editor.php:438
227
  #: ../admin/class-is-editor.php:802 ../admin/class-is-editor.php:1168
228
- #: ../admin/class-is-editor.php:1391 ../admin/class-is-editor.php:1486
229
- #: ../admin/class-is-editor.php:1602 ../admin/class-is-settings-fields.php:106
230
  msgid "Collapse All"
231
  msgstr ""
232
 
@@ -273,8 +273,8 @@ msgstr ""
273
 
274
  #: ../admin/class-is-editor.php:272 ../admin/class-is-editor.php:307
275
  #: ../admin/class-is-editor.php:332 ../admin/class-is-editor.php:383
276
- #: ../admin/class-is-editor.php:1211 ../admin/class-is-editor.php:1266
277
- #: ../admin/class-is-editor.php:1290 ../admin/class-is-editor.php:1337
278
  msgid "Search.."
279
  msgstr ""
280
 
@@ -284,8 +284,8 @@ msgstr ""
284
 
285
  #: ../admin/class-is-editor.php:279 ../admin/class-is-editor.php:317
286
  #: ../admin/class-is-editor.php:342 ../admin/class-is-editor.php:391
287
- #: ../admin/class-is-editor.php:1223 ../admin/class-is-editor.php:1275
288
- #: ../admin/class-is-editor.php:1301 ../admin/class-is-editor.php:1345
289
  msgid ""
290
  "Hold down the control (ctrl) or command button to select multiple options."
291
  msgstr ""
@@ -322,7 +322,7 @@ msgstr ""
322
  msgid "Selected File Types :"
323
  msgstr ""
324
 
325
- #: ../admin/class-is-editor.php:401 ../admin/class-is-editor.php:1355
326
  msgid "Search all MIME types"
327
  msgstr ""
328
 
@@ -361,13 +361,13 @@ msgid ""
361
  "types."
362
  msgstr ""
363
 
364
- #: ../admin/class-is-editor.php:428 ../admin/class-is-editor.php:1381
365
  msgid ""
366
  "You are using WordPress version less than 4.9 which does not support "
367
  "searching by MIME type."
368
  msgstr ""
369
 
370
- #: ../admin/class-is-editor.php:437 ../admin/class-is-editor.php:1390
371
  msgid "Extras"
372
  msgstr ""
373
 
@@ -415,7 +415,7 @@ msgstr ""
415
  msgid "OR - Search posts having any one of the above selected category terms"
416
  msgstr ""
417
 
418
- #: ../admin/class-is-editor.php:493 ../admin/class-is-editor.php:1454
419
  msgid "Post Status"
420
  msgstr ""
421
 
@@ -427,7 +427,7 @@ msgstr ""
427
  msgid "Select Post Status"
428
  msgstr ""
429
 
430
- #: ../admin/class-is-editor.php:536 ../admin/class-is-editor.php:1395
431
  msgid "Authors"
432
  msgstr ""
433
 
@@ -756,204 +756,204 @@ msgid ""
756
  "%2$s."
757
  msgstr ""
758
 
759
- #: ../admin/class-is-editor.php:1279
760
  #, php-format
761
  msgid ""
762
  "Do not exclude any %s from search of any taxonomies (%s categories, tags & "
763
  "terms %s)"
764
  msgstr ""
765
 
766
- #: ../admin/class-is-editor.php:1281
767
  #, php-format
768
  msgid ""
769
  "Exclude %s from search of selected taxonomies (%s categories, tags & terms "
770
  "%s)"
771
  msgstr ""
772
 
773
- #: ../admin/class-is-editor.php:1305
774
  #, php-format
775
  msgid "Exclude %s from search having selected custom fields"
776
  msgstr ""
777
 
778
- #: ../admin/class-is-editor.php:1317
779
  msgid "Exclude 'Out of Stock' products from search"
780
  msgstr ""
781
 
782
- #: ../admin/class-is-editor.php:1347
783
  msgid "Excluded File Types :"
784
  msgstr ""
785
 
786
- #: ../admin/class-is-editor.php:1357
787
  msgid "Exclude selected MIME types from search"
788
  msgstr ""
789
 
790
- #: ../admin/class-is-editor.php:1361
791
  msgid "Exclude Images"
792
  msgstr ""
793
 
794
- #: ../admin/class-is-editor.php:1363
795
  msgid "Exclude Videos"
796
  msgstr ""
797
 
798
- #: ../admin/class-is-editor.php:1365
799
  msgid "Exclude Audios"
800
  msgstr ""
801
 
802
- #: ../admin/class-is-editor.php:1367
803
  msgid "Exclude Text Files"
804
  msgstr ""
805
 
806
- #: ../admin/class-is-editor.php:1369
807
  msgid "Exclude PDF Files"
808
  msgstr ""
809
 
810
- #: ../admin/class-is-editor.php:1371
811
  msgid "Exclude Document Files"
812
  msgstr ""
813
 
814
- #: ../admin/class-is-editor.php:1378
815
  #, php-format
816
  msgid ""
817
  "This search form is configured in the %s section to search specific "
818
  "attachments."
819
  msgstr ""
820
 
821
- #: ../admin/class-is-editor.php:1399
822
  msgid "Exclude posts from search created by selected authors."
823
  msgstr ""
824
 
825
- #: ../admin/class-is-editor.php:1418 ../admin/class-is-editor.php:1420
826
  msgid "Search all author posts"
827
  msgstr ""
828
 
829
- #: ../admin/class-is-editor.php:1448
830
  #, php-format
831
  msgid ""
832
  "This search form is configured in the %s section to search posts created by "
833
  "specific authors."
834
  msgstr ""
835
 
836
- #: ../admin/class-is-editor.php:1458
837
  msgid "Exclude posts from search having selected post statuses."
838
  msgstr ""
839
 
840
- #: ../admin/class-is-editor.php:1463
841
  msgid "Exclude sticky posts from search"
842
  msgstr ""
843
 
844
- #: ../admin/class-is-editor.php:1478 ../admin/partials/search-form.php:152
845
  msgid "Advanced Search Form Options"
846
  msgstr ""
847
 
848
- #: ../admin/class-is-editor.php:1485
849
  msgid "Posts Per Page"
850
  msgstr ""
851
 
852
- #: ../admin/class-is-editor.php:1489
853
  msgid "Display selected number of posts in search results."
854
  msgstr ""
855
 
856
- #: ../admin/class-is-editor.php:1506
857
  msgid "Order Search Results"
858
  msgstr ""
859
 
860
- #: ../admin/class-is-editor.php:1509
861
  msgid "Display posts on search results page ordered by selected options."
862
  msgstr ""
863
 
864
- #: ../admin/class-is-editor.php:1534
865
  msgid "Highlight Search Terms"
866
  msgstr ""
867
 
868
- #: ../admin/class-is-editor.php:1540
869
  msgid "Highlight searched terms on search results page"
870
  msgstr ""
871
 
872
- #: ../admin/class-is-editor.php:1543
873
  msgid "Select text highlight color"
874
  msgstr ""
875
 
876
- #: ../admin/class-is-editor.php:1549
877
  msgid "Search All Or Any Search Terms"
878
  msgstr ""
879
 
880
- #: ../admin/class-is-editor.php:1553
881
  msgid ""
882
  "Select whether to search posts having all or any of the words being searched."
883
  msgstr ""
884
 
885
- #: ../admin/class-is-editor.php:1558
886
  msgid "OR - Display content having any of the search terms"
887
  msgstr ""
888
 
889
- #: ../admin/class-is-editor.php:1560
890
  msgid "AND - Display content having all the search terms"
891
  msgstr ""
892
 
893
- #: ../admin/class-is-editor.php:1566
894
  msgid "Fuzzy Matching"
895
  msgstr ""
896
 
897
- #: ../admin/class-is-editor.php:1569
898
  msgid ""
899
  "Select whether to search posts having whole or partial word being searched."
900
  msgstr ""
901
 
902
- #: ../admin/class-is-editor.php:1574
903
  msgid "Whole - Search posts that include the whole search term"
904
  msgstr ""
905
 
906
- #: ../admin/class-is-editor.php:1576
907
  msgid ""
908
  "Partial - Also search words in the posts that begins or ends with the search "
909
  "term"
910
  msgstr ""
911
 
912
- #: ../admin/class-is-editor.php:1582
913
  msgid "Keyword Stemming"
914
  msgstr ""
915
 
916
- #: ../admin/class-is-editor.php:1586
917
  msgid "Select whether to search the base word of a searched keyword."
918
  msgstr ""
919
 
920
- #: ../admin/class-is-editor.php:1587
921
  msgid ""
922
  "For Example: If you search \"doing\" then it also searches base word of "
923
  "\"doing\" that is \"do\" in the specified post types."
924
  msgstr ""
925
 
926
- #: ../admin/class-is-editor.php:1588
927
  msgid "Not recommended to use when Fuzzy Matching option is set to Whole."
928
  msgstr ""
929
 
930
- #: ../admin/class-is-editor.php:1594
931
  msgid "Also search base word of searched keyword"
932
  msgstr ""
933
 
934
- #: ../admin/class-is-editor.php:1601
935
  msgid "Others"
936
  msgstr ""
937
 
938
- #: ../admin/class-is-editor.php:1607
939
  msgid "Display sticky posts to the start of the search results page"
940
  msgstr ""
941
 
942
- #: ../admin/class-is-editor.php:1611
943
  msgid "Display search form only for site administrator"
944
  msgstr ""
945
 
946
- #: ../admin/class-is-editor.php:1615
947
  msgid "Disable this search form"
948
  msgstr ""
949
 
950
- #: ../admin/class-is-editor.php:1618
951
  msgid ""
952
  "Select whether to display an error when user perform search without any "
953
  "search word."
954
  msgstr ""
955
 
956
- #: ../admin/class-is-editor.php:1622
957
  msgid "Display an error for empty search query"
958
  msgstr ""
959
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ivory Search\n"
5
+ "POT-Creation-Date: 2021-12-11 21:29+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"
218
 
219
  #: ../admin/class-is-editor.php:143 ../admin/class-is-editor.php:438
220
  #: ../admin/class-is-editor.php:801 ../admin/class-is-editor.php:1168
221
+ #: ../admin/class-is-editor.php:1395 ../admin/class-is-editor.php:1490
222
+ #: ../admin/class-is-editor.php:1606 ../admin/class-is-settings-fields.php:106
223
  msgid "Expand All"
224
  msgstr ""
225
 
226
  #: ../admin/class-is-editor.php:143 ../admin/class-is-editor.php:438
227
  #: ../admin/class-is-editor.php:802 ../admin/class-is-editor.php:1168
228
+ #: ../admin/class-is-editor.php:1395 ../admin/class-is-editor.php:1490
229
+ #: ../admin/class-is-editor.php:1606 ../admin/class-is-settings-fields.php:106
230
  msgid "Collapse All"
231
  msgstr ""
232
 
273
 
274
  #: ../admin/class-is-editor.php:272 ../admin/class-is-editor.php:307
275
  #: ../admin/class-is-editor.php:332 ../admin/class-is-editor.php:383
276
+ #: ../admin/class-is-editor.php:1211 ../admin/class-is-editor.php:1268
277
+ #: ../admin/class-is-editor.php:1294 ../admin/class-is-editor.php:1341
278
  msgid "Search.."
279
  msgstr ""
280
 
284
 
285
  #: ../admin/class-is-editor.php:279 ../admin/class-is-editor.php:317
286
  #: ../admin/class-is-editor.php:342 ../admin/class-is-editor.php:391
287
+ #: ../admin/class-is-editor.php:1223 ../admin/class-is-editor.php:1278
288
+ #: ../admin/class-is-editor.php:1305 ../admin/class-is-editor.php:1349
289
  msgid ""
290
  "Hold down the control (ctrl) or command button to select multiple options."
291
  msgstr ""
322
  msgid "Selected File Types :"
323
  msgstr ""
324
 
325
+ #: ../admin/class-is-editor.php:401 ../admin/class-is-editor.php:1359
326
  msgid "Search all MIME types"
327
  msgstr ""
328
 
361
  "types."
362
  msgstr ""
363
 
364
+ #: ../admin/class-is-editor.php:428 ../admin/class-is-editor.php:1385
365
  msgid ""
366
  "You are using WordPress version less than 4.9 which does not support "
367
  "searching by MIME type."
368
  msgstr ""
369
 
370
+ #: ../admin/class-is-editor.php:437 ../admin/class-is-editor.php:1394
371
  msgid "Extras"
372
  msgstr ""
373
 
415
  msgid "OR - Search posts having any one of the above selected category terms"
416
  msgstr ""
417
 
418
+ #: ../admin/class-is-editor.php:493 ../admin/class-is-editor.php:1458
419
  msgid "Post Status"
420
  msgstr ""
421
 
427
  msgid "Select Post Status"
428
  msgstr ""
429
 
430
+ #: ../admin/class-is-editor.php:536 ../admin/class-is-editor.php:1399
431
  msgid "Authors"
432
  msgstr ""
433
 
756
  "%2$s."
757
  msgstr ""
758
 
759
+ #: ../admin/class-is-editor.php:1282
760
  #, php-format
761
  msgid ""
762
  "Do not exclude any %s from search of any taxonomies (%s categories, tags & "
763
  "terms %s)"
764
  msgstr ""
765
 
766
+ #: ../admin/class-is-editor.php:1284
767
  #, php-format
768
  msgid ""
769
  "Exclude %s from search of selected taxonomies (%s categories, tags & terms "
770
  "%s)"
771
  msgstr ""
772
 
773
+ #: ../admin/class-is-editor.php:1309
774
  #, php-format
775
  msgid "Exclude %s from search having selected custom fields"
776
  msgstr ""
777
 
778
+ #: ../admin/class-is-editor.php:1321
779
  msgid "Exclude 'Out of Stock' products from search"
780
  msgstr ""
781
 
782
+ #: ../admin/class-is-editor.php:1351
783
  msgid "Excluded File Types :"
784
  msgstr ""
785
 
786
+ #: ../admin/class-is-editor.php:1361
787
  msgid "Exclude selected MIME types from search"
788
  msgstr ""
789
 
790
+ #: ../admin/class-is-editor.php:1365
791
  msgid "Exclude Images"
792
  msgstr ""
793
 
794
+ #: ../admin/class-is-editor.php:1367
795
  msgid "Exclude Videos"
796
  msgstr ""
797
 
798
+ #: ../admin/class-is-editor.php:1369
799
  msgid "Exclude Audios"
800
  msgstr ""
801
 
802
+ #: ../admin/class-is-editor.php:1371
803
  msgid "Exclude Text Files"
804
  msgstr ""
805
 
806
+ #: ../admin/class-is-editor.php:1373
807
  msgid "Exclude PDF Files"
808
  msgstr ""
809
 
810
+ #: ../admin/class-is-editor.php:1375
811
  msgid "Exclude Document Files"
812
  msgstr ""
813
 
814
+ #: ../admin/class-is-editor.php:1382
815
  #, php-format
816
  msgid ""
817
  "This search form is configured in the %s section to search specific "
818
  "attachments."
819
  msgstr ""
820
 
821
+ #: ../admin/class-is-editor.php:1403
822
  msgid "Exclude posts from search created by selected authors."
823
  msgstr ""
824
 
825
+ #: ../admin/class-is-editor.php:1422 ../admin/class-is-editor.php:1424
826
  msgid "Search all author posts"
827
  msgstr ""
828
 
829
+ #: ../admin/class-is-editor.php:1452
830
  #, php-format
831
  msgid ""
832
  "This search form is configured in the %s section to search posts created by "
833
  "specific authors."
834
  msgstr ""
835
 
836
+ #: ../admin/class-is-editor.php:1462
837
  msgid "Exclude posts from search having selected post statuses."
838
  msgstr ""
839
 
840
+ #: ../admin/class-is-editor.php:1467
841
  msgid "Exclude sticky posts from search"
842
  msgstr ""
843
 
844
+ #: ../admin/class-is-editor.php:1482 ../admin/partials/search-form.php:152
845
  msgid "Advanced Search Form Options"
846
  msgstr ""
847
 
848
+ #: ../admin/class-is-editor.php:1489
849
  msgid "Posts Per Page"
850
  msgstr ""
851
 
852
+ #: ../admin/class-is-editor.php:1493
853
  msgid "Display selected number of posts in search results."
854
  msgstr ""
855
 
856
+ #: ../admin/class-is-editor.php:1510
857
  msgid "Order Search Results"
858
  msgstr ""
859
 
860
+ #: ../admin/class-is-editor.php:1513
861
  msgid "Display posts on search results page ordered by selected options."
862
  msgstr ""
863
 
864
+ #: ../admin/class-is-editor.php:1538
865
  msgid "Highlight Search Terms"
866
  msgstr ""
867
 
868
+ #: ../admin/class-is-editor.php:1544
869
  msgid "Highlight searched terms on search results page"
870
  msgstr ""
871
 
872
+ #: ../admin/class-is-editor.php:1547
873
  msgid "Select text highlight color"
874
  msgstr ""
875
 
876
+ #: ../admin/class-is-editor.php:1553
877
  msgid "Search All Or Any Search Terms"
878
  msgstr ""
879
 
880
+ #: ../admin/class-is-editor.php:1557
881
  msgid ""
882
  "Select whether to search posts having all or any of the words being searched."
883
  msgstr ""
884
 
885
+ #: ../admin/class-is-editor.php:1562
886
  msgid "OR - Display content having any of the search terms"
887
  msgstr ""
888
 
889
+ #: ../admin/class-is-editor.php:1564
890
  msgid "AND - Display content having all the search terms"
891
  msgstr ""
892
 
893
+ #: ../admin/class-is-editor.php:1570
894
  msgid "Fuzzy Matching"
895
  msgstr ""
896
 
897
+ #: ../admin/class-is-editor.php:1573
898
  msgid ""
899
  "Select whether to search posts having whole or partial word being searched."
900
  msgstr ""
901
 
902
+ #: ../admin/class-is-editor.php:1578
903
  msgid "Whole - Search posts that include the whole search term"
904
  msgstr ""
905
 
906
+ #: ../admin/class-is-editor.php:1580
907
  msgid ""
908
  "Partial - Also search words in the posts that begins or ends with the search "
909
  "term"
910
  msgstr ""
911
 
912
+ #: ../admin/class-is-editor.php:1586
913
  msgid "Keyword Stemming"
914
  msgstr ""
915
 
916
+ #: ../admin/class-is-editor.php:1590
917
  msgid "Select whether to search the base word of a searched keyword."
918
  msgstr ""
919
 
920
+ #: ../admin/class-is-editor.php:1591
921
  msgid ""
922
  "For Example: If you search \"doing\" then it also searches base word of "
923
  "\"doing\" that is \"do\" in the specified post types."
924
  msgstr ""
925
 
926
+ #: ../admin/class-is-editor.php:1592
927
  msgid "Not recommended to use when Fuzzy Matching option is set to Whole."
928
  msgstr ""
929
 
930
+ #: ../admin/class-is-editor.php:1598
931
  msgid "Also search base word of searched keyword"
932
  msgstr ""
933
 
934
+ #: ../admin/class-is-editor.php:1605
935
  msgid "Others"
936
  msgstr ""
937
 
938
+ #: ../admin/class-is-editor.php:1611
939
  msgid "Display sticky posts to the start of the search results page"
940
  msgstr ""
941
 
942
+ #: ../admin/class-is-editor.php:1615
943
  msgid "Display search form only for site administrator"
944
  msgstr ""
945
 
946
+ #: ../admin/class-is-editor.php:1619
947
  msgid "Disable this search form"
948
  msgstr ""
949
 
950
+ #: ../admin/class-is-editor.php:1622
951
  msgid ""
952
  "Select whether to display an error when user perform search without any "
953
  "search word."
954
  msgstr ""
955
 
956
+ #: ../admin/class-is-editor.php:1626
957
  msgid "Display an error for empty search query"
958
  msgstr ""
959
 
public/class-is-ajax.php CHANGED
@@ -92,7 +92,7 @@ class IS_Ajax {
92
  $template = locate_template( 'is-ajax-results.php' );
93
 
94
  if ( $template ) {
95
- load_template( $template );
96
  } else {
97
  require_once IS_PLUGIN_DIR . 'public/partials/is-ajax-results.php';
98
  }
@@ -414,7 +414,7 @@ class IS_Ajax {
414
  <div class="is-title">
415
  <a href="<?php echo get_the_permalink( $post->ID ); ?>">
416
  <?php if( $product && isset( $field['show_featured_icon'] ) && $field['show_featured_icon'] && $product->is_featured() ) { ?>
417
- <svg class="is-featured-icon" focusable="false" aria-label="<?php _e( "Featured Icon", "ivory-search" ); ?>" version="1.1" viewBox="0 0 20 21" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink">
418
  <g fill-rule="evenodd" stroke="none" stroke-width="1"><g transform="translate(-296.000000, -422.000000)"><g transform="translate(296.000000, 422.500000)"><path d="M10,15.273 L16.18,19 L14.545,11.971 L20,7.244 L12.809,6.627 L10,0 L7.191,6.627 L0,7.244 L5.455,11.971 L3.82,19 L10,15.273 Z"></path></g></g></g>
419
  </svg>
420
  <?php } ?>
92
  $template = locate_template( 'is-ajax-results.php' );
93
 
94
  if ( $template ) {
95
+ require_once $template;
96
  } else {
97
  require_once IS_PLUGIN_DIR . 'public/partials/is-ajax-results.php';
98
  }
414
  <div class="is-title">
415
  <a href="<?php echo get_the_permalink( $post->ID ); ?>">
416
  <?php if( $product && isset( $field['show_featured_icon'] ) && $field['show_featured_icon'] && $product->is_featured() ) { ?>
417
+ <svg class="is-featured-icon" focusable="false" aria-label="<?php _e( "Featured Icon", "add-search-to-menu" ); ?>" version="1.1" viewBox="0 0 20 21" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink">
418
  <g fill-rule="evenodd" stroke="none" stroke-width="1"><g transform="translate(-296.000000, -422.000000)"><g transform="translate(296.000000, 422.500000)"><path d="M10,15.273 L16.18,19 L14.545,11.971 L20,7.244 L12.809,6.627 L10,0 L7.191,6.627 L0,7.244 L5.455,11.971 L3.82,19 L10,15.273 Z"></path></g></g></g>
419
  </svg>
420
  <?php } ?>
public/class-is-public.php CHANGED
@@ -234,14 +234,14 @@ class IS_Public
234
 
235
  if ( '' !== $title ) {
236
  $link_title = ( apply_filters( 'is_show_menu_link_title', true ) ? 'title="' . esc_attr( $title ) . '"' : '' );
237
- $temp .= '<a ' . $link_title . ' href="#" aria-label="' . __( "Search Title Link", "ivory-search" ) . '">';
238
  } else {
239
- $temp .= '<a href="#" aria-label="' . __( "Search Icon Link", "ivory-search" ) . '">';
240
  }
241
 
242
 
243
  if ( '' == $title ) {
244
- $temp .= '<svg width="20" height="20" class="search-icon" role="img" viewBox="2 9 20 5" focusable="false" aria-label="' . __( "Search", "ivory-search" ) . '">
245
  <path class="search-icon-path" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></svg>';
246
  } else {
247
  $temp .= $title;
@@ -294,7 +294,7 @@ class IS_Public
294
  $items .= '<a ' . $link_title . ' href="#">';
295
 
296
  if ( '' == $title ) {
297
- $items .= '<svg width="20" height="20" class="search-icon" role="img" viewBox="2 9 20 5" focusable="false" aria-label="' . __( "Search", "ivory-search" ) . '">
298
  <path class="search-icon-path" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></svg>';
299
  } else {
300
  $items .= $title;
@@ -781,7 +781,9 @@ class IS_Public
781
  foreach ( $q['tax_query'] as $value ) {
782
 
783
  if ( isset( $value['terms'] ) ) {
784
- $tax_post_type = array_diff( $tax_post_type, array( $value['post_type'] ) );
 
 
785
 
786
  if ( 'OR' === $q['tax_query']['relation'] ) {
787
  $search .= $OR;
234
 
235
  if ( '' !== $title ) {
236
  $link_title = ( apply_filters( 'is_show_menu_link_title', true ) ? 'title="' . esc_attr( $title ) . '"' : '' );
237
+ $temp .= '<a ' . $link_title . ' href="#" aria-label="' . __( "Search Title Link", "add-search-to-menu" ) . '">';
238
  } else {
239
+ $temp .= '<a href="#" aria-label="' . __( "Search Icon Link", "add-search-to-menu" ) . '">';
240
  }
241
 
242
 
243
  if ( '' == $title ) {
244
+ $temp .= '<svg width="20" height="20" class="search-icon" role="img" viewBox="2 9 20 5" focusable="false" aria-label="' . __( "Search", "add-search-to-menu" ) . '">
245
  <path class="search-icon-path" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></svg>';
246
  } else {
247
  $temp .= $title;
294
  $items .= '<a ' . $link_title . ' href="#">';
295
 
296
  if ( '' == $title ) {
297
+ $items .= '<svg width="20" height="20" class="search-icon" role="img" viewBox="2 9 20 5" focusable="false" aria-label="' . __( "Search", "add-search-to-menu" ) . '">
298
  <path class="search-icon-path" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></svg>';
299
  } else {
300
  $items .= $title;
781
  foreach ( $q['tax_query'] as $value ) {
782
 
783
  if ( isset( $value['terms'] ) ) {
784
+ if ( isset( $value['post_type'] ) ) {
785
+ $tax_post_type = array_diff( $tax_post_type, array( $value['post_type'] ) );
786
+ }
787
 
788
  if ( 'OR' === $q['tax_query']['relation'] ) {
789
  $search .= $OR;
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: ivorysearch, vinod dalvi
3
  Donate link: https://ivorysearch.com/pricing/
4
  Tags: search, woocommerce search, image search, ajax search, search shortcode, live search, exclude from search, search widget, search menu, search plugin, custom search, search by post type, search by category, relevant search, search forms
5
  Requires at least: 3.9
6
- Tested up to: 5.8
7
  Requires PHP: 5.2.4
8
- Stable tag: 4.8.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -194,43 +194,12 @@ Yes we do. We try our best to help free users with customisation requests and we
194
 
195
  == Changelog ==
196
 
 
 
 
197
  = 4.8.1 =
198
  * Fixed - Autocomplete off was not working.
199
 
200
  = 4.8 =
201
  * Fixed - Error occurred due to inclusion of non-existent file.
202
  * Fixed - Plugin admin options not working.
203
-
204
- = 4.7.1 =
205
- * Improved - Code quality to adhere to WordPress development standards and improve safety/security.
206
-
207
- = 4.7 =
208
- * Fixed - IvoryAjaxVars is not defined error when JS file loading is disabled.
209
- * Fixed - Security issue.
210
-
211
- = 4.6.6 =
212
- * Fixed - JavaScript error "Invalid value used as weak map key" in the AJAX search.
213
-
214
- = 4.6.5 =
215
- * Improved - Implemented simple scroll bar for AJAX search results.
216
-
217
- = 4.6.4 =
218
- * Fixed - AJAX was not working since last plugin version.
219
-
220
- = 4.6.3 =
221
- * Fixed - Notice displayed on creating new search form and in the plugin settings.
222
- * Fixed - Full width menu search opening and closing issue.
223
-
224
- = 4.6.2 =
225
- * Fixed - Undefined tab index notice in admin area.
226
-
227
- = 4.6.1 =
228
- * Fixed - Broken AJAX search results scrollbar.
229
- * Fixed – Security issue in plugin settings (Thanks to Jinson Varghese Behanan from Astra Security).
230
- * Improved - Do not search special character stopwords.
231
-
232
- = 4.6 =
233
- * Fixed - AJAX search results was not scrolling on search form scroll.
234
- * Fixed - Stopwords was not excluding from search.
235
- * Fixed - Menu search icon accessibility issue.
236
- * Updated - Freemius SDK to 2.4.2
3
  Donate link: https://ivorysearch.com/pricing/
4
  Tags: search, woocommerce search, image search, ajax search, search shortcode, live search, exclude from search, search widget, search menu, search plugin, custom search, search by post type, search by category, relevant search, search forms
5
  Requires at least: 3.9
6
+ Tested up to: 5.9
7
  Requires PHP: 5.2.4
8
+ Stable tag: 4.8.2
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
194
 
195
  == Changelog ==
196
 
197
+ = 4.8.2 =
198
+ * Fixed - Plugin template file is-ajax-results.php was not overriding.
199
+
200
  = 4.8.1 =
201
  * Fixed - Autocomplete off was not working.
202
 
203
  = 4.8 =
204
  * Fixed - Error occurred due to inclusion of non-existent file.
205
  * Fixed - Plugin admin options not working.