Ivory Search – WordPress Search Plugin - Version 4.4.7

Version Description

  • Fixed - All public post types were not searchable.
  • Improved - Added alt tag to loader image.
Download this release

Release Info

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

Code changes from version 4.4.6 to 4.4.7

add-search-to-menu.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Ivory Search
4
  * Plugin URI: https://ivorysearch.com
5
  * Description: The WordPress Search plugin that includes Search Form Customizer, WooCommerce Search, Image Search, Search Shortcode, AJAX Search & Live Search support!
6
- * Version: 4.4.6
7
  * Author: Ivory Search
8
  * Author URI: https://ivorysearch.com/
9
  * License: GPL2+
@@ -11,8 +11,8 @@
11
  * Domain Path: /languages
12
  * Text Domain: ivory-search
13
  *
14
- *
15
- * WC tested up to: 3.9
16
  *
17
  * Ivory Search is free software: you can redistribute it and/or modify
18
  * it under the terms of the GNU General Public License as published by
@@ -106,7 +106,7 @@ final class Ivory_Search {
106
  */
107
  private function define_constants() {
108
 
109
- define( 'IS_VERSION', '4.4.6' );
110
  define( 'IS_PLUGIN_FILE', __FILE__ );
111
  define( 'IS_PLUGIN_BASE', plugin_basename( IS_PLUGIN_FILE ) );
112
  define( 'IS_PLUGIN_DIR', plugin_dir_path( IS_PLUGIN_FILE ) );
3
  * Plugin Name: Ivory Search
4
  * Plugin URI: https://ivorysearch.com
5
  * Description: The WordPress Search plugin that includes Search Form Customizer, WooCommerce Search, Image Search, Search Shortcode, AJAX Search & Live Search support!
6
+ * Version: 4.4.7
7
  * Author: Ivory Search
8
  * Author URI: https://ivorysearch.com/
9
  * License: GPL2+
11
  * Domain Path: /languages
12
  * Text Domain: ivory-search
13
  *
14
+ *
15
+ * WC tested up to: 4
16
  *
17
  * Ivory Search is free software: you can redistribute it and/or modify
18
  * it under the terms of the GNU General Public License as published by
106
  */
107
  private function define_constants() {
108
 
109
+ define( 'IS_VERSION', '4.4.7' );
110
  define( 'IS_PLUGIN_FILE', __FILE__ );
111
  define( 'IS_PLUGIN_BASE', plugin_basename( IS_PLUGIN_FILE ) );
112
  define( 'IS_PLUGIN_DIR', plugin_dir_path( IS_PLUGIN_FILE ) );
admin/class-is-admin.php CHANGED
@@ -950,8 +950,7 @@ class IS_Admin
950
  }
951
  $defaults = wp_parse_args( $defaults, array(
952
  'post_type' => get_post_types( array(
953
- 'public' => true,
954
- 'exclude_from_search' => false,
955
  ) ),
956
  ) );
957
  $input = wp_parse_args( $input, $defaults );
950
  }
951
  $defaults = wp_parse_args( $defaults, array(
952
  'post_type' => get_post_types( array(
953
+ 'public' => true,
 
954
  ) ),
955
  ) );
956
  $input = wp_parse_args( $input, $defaults );
admin/class-is-editor.php CHANGED
@@ -134,13 +134,15 @@ class IS_Search_Editor
134
  IS_Help::help_info( $content );
135
  echo '<div>' ;
136
  $post_types = get_post_types( array(
137
- 'public' => true,
138
- 'exclude_from_search' => false,
139
  ) );
140
  $post_types2 = array();
141
 
142
  if ( $default_search ) {
143
- $post_types2 = $post_types;
 
 
 
144
  } else {
145
  if ( isset( $includes['post_type'] ) && !empty($includes['post_type']) && is_array( $includes['post_type'] ) ) {
146
  $post_types2 = array_values( $includes['post_type'] );
@@ -165,7 +167,7 @@ class IS_Search_Editor
165
  echo '</div>' ;
166
  echo '<div class="is-cb-multisel">' ;
167
  foreach ( $post_types as $key => $post_type ) {
168
- $checked = ( $default_search || isset( $includes['post_type'][esc_attr( $key )] ) ? esc_attr( $key ) : 0 );
169
  echo '<label for="' . $id . '-post_type-' . esc_attr( $key ) . '"> ' ;
170
  echo '<input class="_is_includes-post_type" type="checkbox" id="' . $id . '-post_type-' . esc_attr( $key ) . '" name="' . $id . '[post_type][' . esc_attr( $key ) . ']" value="' . esc_attr( $key ) . '" ' . checked( $key, $checked, false ) . '/>' ;
171
  echo '<span class="toggle-check-text"></span>' ;
@@ -683,10 +685,10 @@ class IS_Search_Editor
683
  echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Search post excerpt %s( File caption )%s", 'ivory-search' ), '<i>', '</i>' ) . '</label></p>' ;
684
  $checked = ( isset( $includes['search_tax_title'] ) && $includes['search_tax_title'] ? 1 : 0 );
685
  echo '<p class="check-radio"><label for="' . $id . '-search_tax_title" ><input class="_is_includes-tax_query" type="checkbox" id="' . $id . '-search_tax_title" name="' . $id . '[search_tax_title]" value="1" ' . checked( 1, $checked, false ) . '/>' ;
686
- echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Search category title %s( Displays posts of the category )%s", 'ivory-search' ), '<i>', '</i>' ) . '</label></p>' ;
687
  $checked = ( isset( $includes['search_tax_desp'] ) && $includes['search_tax_desp'] ? 1 : 0 );
688
  echo '<p class="check-radio"><label for="' . $id . '-search_tax_desp" ><input class="_is_includes-tax_query" type="checkbox" id="' . $id . '-search_tax_desp" name="' . $id . '[search_tax_desp]" value="1" ' . checked( 1, $checked, false ) . '/>' ;
689
- echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Search category description %s( Displays posts of the category )%s", 'ivory-search' ), '<i>', '</i>' ) . '</label></p>' ;
690
 
691
  if ( isset( $includes['tax_query'] ) ) {
692
  $tax_rel_disable = '';
@@ -2186,6 +2188,8 @@ class IS_Search_Editor
2186
  for ( $d = 1 ; $d <= 1000 ; $d++ ) {
2187
  echo '<option value="' . $d . '" ' . selected( $d, $checked, false ) . '>' . $d . '</option>' ;
2188
  }
 
 
2189
  echo '</select>' ;
2190
  ?>
2191
  </div></div>
134
  IS_Help::help_info( $content );
135
  echo '<div>' ;
136
  $post_types = get_post_types( array(
137
+ 'public' => true,
 
138
  ) );
139
  $post_types2 = array();
140
 
141
  if ( $default_search ) {
142
+ $post_types2 = get_post_types( array(
143
+ 'public' => true,
144
+ 'exclude_from_search' => false,
145
+ ) );
146
  } else {
147
  if ( isset( $includes['post_type'] ) && !empty($includes['post_type']) && is_array( $includes['post_type'] ) ) {
148
  $post_types2 = array_values( $includes['post_type'] );
167
  echo '</div>' ;
168
  echo '<div class="is-cb-multisel">' ;
169
  foreach ( $post_types as $key => $post_type ) {
170
+ $checked = ( $default_search && in_array( $key, $post_types2 ) || isset( $includes['post_type'][esc_attr( $key )] ) ? esc_attr( $key ) : 0 );
171
  echo '<label for="' . $id . '-post_type-' . esc_attr( $key ) . '"> ' ;
172
  echo '<input class="_is_includes-post_type" type="checkbox" id="' . $id . '-post_type-' . esc_attr( $key ) . '" name="' . $id . '[post_type][' . esc_attr( $key ) . ']" value="' . esc_attr( $key ) . '" ' . checked( $key, $checked, false ) . '/>' ;
173
  echo '<span class="toggle-check-text"></span>' ;
685
  echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Search post excerpt %s( File caption )%s", 'ivory-search' ), '<i>', '</i>' ) . '</label></p>' ;
686
  $checked = ( isset( $includes['search_tax_title'] ) && $includes['search_tax_title'] ? 1 : 0 );
687
  echo '<p class="check-radio"><label for="' . $id . '-search_tax_title" ><input class="_is_includes-tax_query" type="checkbox" id="' . $id . '-search_tax_title" name="' . $id . '[search_tax_title]" value="1" ' . checked( 1, $checked, false ) . '/>' ;
688
+ echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Search category/tag title %s( Displays posts of the category/tag )%s", 'ivory-search' ), '<i>', '</i>' ) . '</label></p>' ;
689
  $checked = ( isset( $includes['search_tax_desp'] ) && $includes['search_tax_desp'] ? 1 : 0 );
690
  echo '<p class="check-radio"><label for="' . $id . '-search_tax_desp" ><input class="_is_includes-tax_query" type="checkbox" id="' . $id . '-search_tax_desp" name="' . $id . '[search_tax_desp]" value="1" ' . checked( 1, $checked, false ) . '/>' ;
691
+ echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Search category/tag description %s( Displays posts of the category/tag )%s", 'ivory-search' ), '<i>', '</i>' ) . '</label></p>' ;
692
 
693
  if ( isset( $includes['tax_query'] ) ) {
694
  $tax_rel_disable = '';
2188
  for ( $d = 1 ; $d <= 1000 ; $d++ ) {
2189
  echo '<option value="' . $d . '" ' . selected( $d, $checked, false ) . '>' . $d . '</option>' ;
2190
  }
2191
+ echo '<option value="9999" ' . selected( 9999, $checked, false ) . '>9999</option>' ;
2192
+ echo '<option value="-1" ' . selected( -1, $checked, false ) . '>-1</option>' ;
2193
  echo '</select>' ;
2194
  ?>
2195
  </div></div>
admin/css/ivory-search-admin.css CHANGED
@@ -747,6 +747,7 @@ h4.panel-desc {
747
 
748
  #wpbody .col-wrapper select[multiple],
749
  #wpbody .search-form-editor-panel select[multiple]{
 
750
  width: 100%;
751
  height: 150px;
752
  overflow: overlay;
747
 
748
  #wpbody .col-wrapper select[multiple],
749
  #wpbody .search-form-editor-panel select[multiple]{
750
+ max-width: 100%;
751
  width: 100%;
752
  height: 150px;
753
  overflow: overlay;
includes/class-is-search-form.php CHANGED
@@ -481,7 +481,7 @@ class IS_Search_Form {
481
  if ( isset( $_ajax['enable_ajax'] ) ) {
482
  $loader_image = isset( $settings['loader-image'] ) ? $settings['loader-image'] : IS_PLUGIN_URI . 'public/images/spinner.gif';
483
  if ( $loader_image ) {
484
- $result .= '<img class="is-loader-image" style="display: none;" src="'.$loader_image.'" />';
485
  }
486
  }
487
  $result .= '</label>';
481
  if ( isset( $_ajax['enable_ajax'] ) ) {
482
  $loader_image = isset( $settings['loader-image'] ) ? $settings['loader-image'] : IS_PLUGIN_URI . 'public/images/spinner.gif';
483
  if ( $loader_image ) {
484
+ $result .= '<img class="is-loader-image" alt="'. esc_attr__( "Loader Image", 'ivory-search' ) .'" style="display: none;" src="'.$loader_image.'" />';
485
  }
486
  }
487
  $result .= '</label>';
languages/default.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ivory Search\n"
4
- "POT-Creation-Date: 2019-12-25 20:14+0530\n"
5
- "PO-Revision-Date: 2019-12-25 20:14+0530\n"
6
  "Last-Translator: \n"
7
  "Language-Team: Ivory Search <admin@ivorysearch.com>\n"
8
  "Language: en_US\n"
@@ -221,7 +221,7 @@ msgstr ""
221
  #: ../admin/class-is-editor.php:655 ../admin/class-is-editor.php:750
222
  #: ../admin/class-is-editor.php:1072 ../admin/class-is-editor.php:1129
223
  #: ../admin/class-is-editor.php:1411 ../admin/class-is-editor.php:1442
224
- #: ../admin/class-is-editor.php:1556 ../admin/class-is-settings-fields.php:106
225
  msgid "Expand All"
226
  msgstr ""
227
 
@@ -229,7 +229,7 @@ msgstr ""
229
  #: ../admin/class-is-editor.php:656 ../admin/class-is-editor.php:751
230
  #: ../admin/class-is-editor.php:1073 ../admin/class-is-editor.php:1129
231
  #: ../admin/class-is-editor.php:1411 ../admin/class-is-editor.php:1442
232
- #: ../admin/class-is-editor.php:1556 ../admin/class-is-settings-fields.php:106
233
  msgid "Collapse All"
234
  msgstr ""
235
 
@@ -457,7 +457,7 @@ msgstr ""
457
  msgid "Search posts without passwords"
458
  msgstr ""
459
 
460
- #: ../admin/class-is-editor.php:570 ../admin/class-is-editor.php:1555
461
  #: ../admin/class-is-settings-fields.php:139
462
  msgid "Extras"
463
  msgstr ""
@@ -479,12 +479,13 @@ msgstr ""
479
 
480
  #: ../admin/class-is-editor.php:586
481
  #, php-format
482
- msgid "Search category title %s( Displays posts of the category )%s"
483
  msgstr ""
484
 
485
  #: ../admin/class-is-editor.php:589
486
  #, php-format
487
- msgid "Search category description %s( Displays posts of the category )%s"
 
488
  msgstr ""
489
 
490
  #: ../admin/class-is-editor.php:610
@@ -862,103 +863,103 @@ msgstr ""
862
  msgid "Display selected number of posts on search results page."
863
  msgstr ""
864
 
865
- #: ../admin/class-is-editor.php:1460
866
  msgid "Order Search Results"
867
  msgstr ""
868
 
869
- #: ../admin/class-is-editor.php:1463
870
  msgid "Display posts on search results page ordered by selected options."
871
  msgstr ""
872
 
873
- #: ../admin/class-is-editor.php:1488
874
  msgid "Highlight Search Terms"
875
  msgstr ""
876
 
877
- #: ../admin/class-is-editor.php:1494
878
  msgid "Highlight searched terms on search results page"
879
  msgstr ""
880
 
881
- #: ../admin/class-is-editor.php:1497
882
  msgid "Set highlight color in Hex format"
883
  msgstr ""
884
 
885
- #: ../admin/class-is-editor.php:1503
886
  msgid "Search All Or Any Search Terms"
887
  msgstr ""
888
 
889
- #: ../admin/class-is-editor.php:1507
890
  msgid ""
891
  "Select whether to search posts having all or any of the words being searched."
892
  msgstr ""
893
 
894
- #: ../admin/class-is-editor.php:1512
895
  msgid "OR - Display content having any of the search terms"
896
  msgstr ""
897
 
898
- #: ../admin/class-is-editor.php:1514
899
  msgid "AND - Display content having all the search terms"
900
  msgstr ""
901
 
902
- #: ../admin/class-is-editor.php:1520
903
  msgid "Fuzzy Matching"
904
  msgstr ""
905
 
906
- #: ../admin/class-is-editor.php:1523
907
  msgid ""
908
  "Select whether to search posts having whole or partial word being searched."
909
  msgstr ""
910
 
911
- #: ../admin/class-is-editor.php:1528
912
  msgid "Whole - Search posts that include the whole search term"
913
  msgstr ""
914
 
915
- #: ../admin/class-is-editor.php:1530
916
  msgid ""
917
  "Partial - Also search words in the posts that begins or ends with the search "
918
  "term"
919
  msgstr ""
920
 
921
- #: ../admin/class-is-editor.php:1536
922
  msgid "Keyword Stemming"
923
  msgstr ""
924
 
925
- #: ../admin/class-is-editor.php:1540
926
  msgid "Select whether to search the base word of a searched keyword."
927
  msgstr ""
928
 
929
- #: ../admin/class-is-editor.php:1541
930
  msgid ""
931
  "For Example: If you search \"doing\" then it also searches base word of "
932
  "\"doing\" that is \"do\" in the specified post types."
933
  msgstr ""
934
 
935
- #: ../admin/class-is-editor.php:1542
936
  msgid "Not recommended to use when Fuzzy Matching option is set to Whole."
937
  msgstr ""
938
 
939
- #: ../admin/class-is-editor.php:1548
940
  msgid "Also search base word of searched keyword"
941
  msgstr ""
942
 
943
- #: ../admin/class-is-editor.php:1561
944
  msgid "Display sticky posts to the start of the search results page"
945
  msgstr ""
946
 
947
- #: ../admin/class-is-editor.php:1565
948
  msgid "Display search form only for site administrator"
949
  msgstr ""
950
 
951
- #: ../admin/class-is-editor.php:1569
952
  msgid "Disable this search form"
953
  msgstr ""
954
 
955
- #: ../admin/class-is-editor.php:1572
956
  msgid ""
957
  "Select whether to display an error when user perform search without any "
958
  "search word."
959
  msgstr ""
960
 
961
- #: ../admin/class-is-editor.php:1576
962
  msgid "Display an error for empty search query"
963
  msgstr ""
964
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ivory Search\n"
4
+ "POT-Creation-Date: 2020-03-17 21:05+0530\n"
5
+ "PO-Revision-Date: 2020-03-17 21:05+0530\n"
6
  "Last-Translator: \n"
7
  "Language-Team: Ivory Search <admin@ivorysearch.com>\n"
8
  "Language: en_US\n"
221
  #: ../admin/class-is-editor.php:655 ../admin/class-is-editor.php:750
222
  #: ../admin/class-is-editor.php:1072 ../admin/class-is-editor.php:1129
223
  #: ../admin/class-is-editor.php:1411 ../admin/class-is-editor.php:1442
224
+ #: ../admin/class-is-editor.php:1558 ../admin/class-is-settings-fields.php:106
225
  msgid "Expand All"
226
  msgstr ""
227
 
229
  #: ../admin/class-is-editor.php:656 ../admin/class-is-editor.php:751
230
  #: ../admin/class-is-editor.php:1073 ../admin/class-is-editor.php:1129
231
  #: ../admin/class-is-editor.php:1411 ../admin/class-is-editor.php:1442
232
+ #: ../admin/class-is-editor.php:1558 ../admin/class-is-settings-fields.php:106
233
  msgid "Collapse All"
234
  msgstr ""
235
 
457
  msgid "Search posts without passwords"
458
  msgstr ""
459
 
460
+ #: ../admin/class-is-editor.php:570 ../admin/class-is-editor.php:1557
461
  #: ../admin/class-is-settings-fields.php:139
462
  msgid "Extras"
463
  msgstr ""
479
 
480
  #: ../admin/class-is-editor.php:586
481
  #, php-format
482
+ msgid "Search category/tag title %s( Displays posts of the category/tag )%s"
483
  msgstr ""
484
 
485
  #: ../admin/class-is-editor.php:589
486
  #, php-format
487
+ msgid ""
488
+ "Search category/tag description %s( Displays posts of the category/tag )%s"
489
  msgstr ""
490
 
491
  #: ../admin/class-is-editor.php:610
863
  msgid "Display selected number of posts on search results page."
864
  msgstr ""
865
 
866
+ #: ../admin/class-is-editor.php:1462
867
  msgid "Order Search Results"
868
  msgstr ""
869
 
870
+ #: ../admin/class-is-editor.php:1465
871
  msgid "Display posts on search results page ordered by selected options."
872
  msgstr ""
873
 
874
+ #: ../admin/class-is-editor.php:1490
875
  msgid "Highlight Search Terms"
876
  msgstr ""
877
 
878
+ #: ../admin/class-is-editor.php:1496
879
  msgid "Highlight searched terms on search results page"
880
  msgstr ""
881
 
882
+ #: ../admin/class-is-editor.php:1499
883
  msgid "Set highlight color in Hex format"
884
  msgstr ""
885
 
886
+ #: ../admin/class-is-editor.php:1505
887
  msgid "Search All Or Any Search Terms"
888
  msgstr ""
889
 
890
+ #: ../admin/class-is-editor.php:1509
891
  msgid ""
892
  "Select whether to search posts having all or any of the words being searched."
893
  msgstr ""
894
 
895
+ #: ../admin/class-is-editor.php:1514
896
  msgid "OR - Display content having any of the search terms"
897
  msgstr ""
898
 
899
+ #: ../admin/class-is-editor.php:1516
900
  msgid "AND - Display content having all the search terms"
901
  msgstr ""
902
 
903
+ #: ../admin/class-is-editor.php:1522
904
  msgid "Fuzzy Matching"
905
  msgstr ""
906
 
907
+ #: ../admin/class-is-editor.php:1525
908
  msgid ""
909
  "Select whether to search posts having whole or partial word being searched."
910
  msgstr ""
911
 
912
+ #: ../admin/class-is-editor.php:1530
913
  msgid "Whole - Search posts that include the whole search term"
914
  msgstr ""
915
 
916
+ #: ../admin/class-is-editor.php:1532
917
  msgid ""
918
  "Partial - Also search words in the posts that begins or ends with the search "
919
  "term"
920
  msgstr ""
921
 
922
+ #: ../admin/class-is-editor.php:1538
923
  msgid "Keyword Stemming"
924
  msgstr ""
925
 
926
+ #: ../admin/class-is-editor.php:1542
927
  msgid "Select whether to search the base word of a searched keyword."
928
  msgstr ""
929
 
930
+ #: ../admin/class-is-editor.php:1543
931
  msgid ""
932
  "For Example: If you search \"doing\" then it also searches base word of "
933
  "\"doing\" that is \"do\" in the specified post types."
934
  msgstr ""
935
 
936
+ #: ../admin/class-is-editor.php:1544
937
  msgid "Not recommended to use when Fuzzy Matching option is set to Whole."
938
  msgstr ""
939
 
940
+ #: ../admin/class-is-editor.php:1550
941
  msgid "Also search base word of searched keyword"
942
  msgstr ""
943
 
944
+ #: ../admin/class-is-editor.php:1563
945
  msgid "Display sticky posts to the start of the search results page"
946
  msgstr ""
947
 
948
+ #: ../admin/class-is-editor.php:1567
949
  msgid "Display search form only for site administrator"
950
  msgstr ""
951
 
952
+ #: ../admin/class-is-editor.php:1571
953
  msgid "Disable this search form"
954
  msgstr ""
955
 
956
+ #: ../admin/class-is-editor.php:1574
957
  msgid ""
958
  "Select whether to display an error when user perform search without any "
959
  "search word."
960
  msgstr ""
961
 
962
+ #: ../admin/class-is-editor.php:1578
963
  msgid "Display an error for empty search query"
964
  msgstr ""
965
 
public/class-is-ajax.php CHANGED
@@ -209,7 +209,7 @@ class IS_Ajax {
209
  $settings = get_option( 'is_search_' . $search_post_id );
210
  $loader_image = isset( $settings['loader-image'] ) ? $settings['loader-image'] : IS_PLUGIN_URI . 'public/images/spinner.gif';
211
  if( $loader_image ) {
212
- echo '<img class="is-load-more-image" src="'.esc_attr( $loader_image ).'" style="display: none;" />';
213
  }
214
  ?>
215
  </div>
209
  $settings = get_option( 'is_search_' . $search_post_id );
210
  $loader_image = isset( $settings['loader-image'] ) ? $settings['loader-image'] : IS_PLUGIN_URI . 'public/images/spinner.gif';
211
  if( $loader_image ) {
212
+ echo '<img class="is-load-more-image" alt="'. esc_attr__( "Loader Image", 'ivory-search' ) .'" src="'.esc_attr( $loader_image ).'" style="display: none;" />';
213
  }
214
  ?>
215
  </div>
public/class-is-public.php CHANGED
@@ -374,14 +374,8 @@ class IS_Public
374
  $query->set( $inc_key, array_values( $inc_val ) );
375
  break;
376
  case 'post_type':
377
-
378
- if ( !isset( $q['post_type'] ) || NULL == $q['post_type'] ) {
379
- $pt_val = array_values( $inc_val );
380
- $query->set( $inc_key, $pt_val );
381
- } else {
382
- $query->set( $inc_key, $q['post_type'] );
383
- }
384
-
385
  if ( in_array( 'attachment', $inc_val ) ) {
386
  $query->set( 'post_status', array( 'publish', 'inherit' ) );
387
  }
374
  $query->set( $inc_key, array_values( $inc_val ) );
375
  break;
376
  case 'post_type':
377
+ $pt_val = array_values( $inc_val );
378
+ $query->set( $inc_key, $pt_val );
 
 
 
 
 
 
379
  if ( in_array( 'attachment', $inc_val ) ) {
380
  $query->set( 'post_status', array( 'publish', 'inherit' ) );
381
  }
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.3
7
  Requires PHP: 5.2.4
8
- Stable tag: 4.4.6
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -192,6 +192,10 @@ Yes we do. We try our best to help free users with customisation requests and we
192
 
193
  == Changelog ==
194
 
 
 
 
 
195
  = 4.4.6 =
196
  * Fixed - AJAX search results some options not working.
197
 
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.4
7
  Requires PHP: 5.2.4
8
+ Stable tag: 4.4.7
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
192
 
193
  == Changelog ==
194
 
195
+ = 4.4.7 =
196
+ * Fixed - All public post types were not searchable.
197
+ * Improved - Added alt tag to loader image.
198
+
199
  = 4.4.6 =
200
  * Fixed - AJAX search results some options not working.
201