Ajax Search Lite - Version 4.7.25

Version Description

  • Fixed an issue with the content image parser, that was introduced in the previous release by accident
Download this release

Release Info

Developer wpdreams
Plugin Icon 128x128 Ajax Search Lite
Version 4.7.25
Comparing to
See all releases

Code changes from version 4.7.24 to 4.7.25

ajax-search-lite.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ajax Search Lite
4
  Plugin URI: http://wp-dreams.com
5
  Description: The lite version of the most powerful ajax powered search engine for WordPress.
6
- Version: 4.7.24
7
  Author: Ernest Marcinko
8
  Author URI: http://wp-dreams.com
9
  Text Domain: ajax-search-lite
@@ -25,8 +25,8 @@ define(
25
  str_replace('http://', 'https://', plugin_dir_url(__FILE__)) : plugin_dir_url(__FILE__)
26
  );
27
  define('ASL_URL_NP', str_replace(array("http://", "https://"), "//", plugin_dir_url(__FILE__)));
28
- define('ASL_CURRENT_VERSION', 4734);
29
- define('ASL_CURR_VER_STRING', "4.7.24");
30
  define('ASL_DEBUG', 0);
31
  define('ASL_DEMO', get_option('wd_asl_demo', 0) );
32
 
3
  Plugin Name: Ajax Search Lite
4
  Plugin URI: http://wp-dreams.com
5
  Description: The lite version of the most powerful ajax powered search engine for WordPress.
6
+ Version: 4.7.25
7
  Author: Ernest Marcinko
8
  Author URI: http://wp-dreams.com
9
  Text Domain: ajax-search-lite
25
  str_replace('http://', 'https://', plugin_dir_url(__FILE__)) : plugin_dir_url(__FILE__)
26
  );
27
  define('ASL_URL_NP', str_replace(array("http://", "https://"), "//", plugin_dir_url(__FILE__)));
28
+ define('ASL_CURRENT_VERSION', 4735);
29
+ define('ASL_CURR_VER_STRING', "4.7.25");
30
  define('ASL_DEBUG', 0);
31
  define('ASL_DEMO', get_option('wd_asl_demo', 0) );
32
 
includes/classes/search/search_content.class.php CHANGED
@@ -1158,14 +1158,6 @@ if ( ! class_exists( 'wpdreams_searchContent' ) ) {
1158
  * @return string image URL
1159
  */
1160
  protected function getBFIimage( $post ) {
1161
- $sd = $this->searchData;
1162
-
1163
- $get_content = $sd['showdescription'] == 1;
1164
- $get_excerpt = (
1165
- w_isset_def($sd['titlefield'], 0) == 1 ||
1166
- w_isset_def($sd['descriptionfield'], 0) == 1 ||
1167
- wd_in_array_r('excerpt', $this->imageSettings)
1168
- ) ? true : false;
1169
 
1170
  if ( ! isset( $post->image ) || $post->image == null ) {
1171
 
@@ -1187,8 +1179,7 @@ if ( ! class_exists( 'wpdreams_searchContent' ) ) {
1187
  }
1188
  break;
1189
  case "content":
1190
- $content = $get_content ? get_post_field('post_content', $post->id) : $post->content;
1191
- $content = apply_filters('the_content', $content);
1192
 
1193
  $im = wpdreams_get_image_from_content( $content, 0 );
1194
  if ( is_multisite() ) {
@@ -1196,7 +1187,7 @@ if ( ! class_exists( 'wpdreams_searchContent' ) ) {
1196
  }
1197
  break;
1198
  case "excerpt":
1199
- $excerpt = $get_excerpt ? get_post_field('post_excerpt', $post->id) : $post->excerpt;
1200
 
1201
  $im = wpdreams_get_image_from_content( $excerpt, 0 );
1202
  if ( is_multisite() ) {
1158
  * @return string image URL
1159
  */
1160
  protected function getBFIimage( $post ) {
 
 
 
 
 
 
 
 
1161
 
1162
  if ( ! isset( $post->image ) || $post->image == null ) {
1163
 
1179
  }
1180
  break;
1181
  case "content":
1182
+ $content = apply_filters('the_content', get_post_field('post_content', $post->id));
 
1183
 
1184
  $im = wpdreams_get_image_from_content( $content, 0 );
1185
  if ( is_multisite() ) {
1187
  }
1188
  break;
1189
  case "excerpt":
1190
+ $excerpt = get_post_field('post_excerpt', $post->id);
1191
 
1192
  $im = wpdreams_get_image_from_content( $excerpt, 0 );
1193
  if ( is_multisite() ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wp-dreams.com
4
  Tags: search, better wordpress search, search plugin, relevance search, widget, Post, ajax search, search filter, wp ajax search, custom fields search, better search, ajax search plugin, wp search, wp search plugin, filter, relevant search plugin, wordpress search, Live Search, shortcode, google, autocomplete, suggest, woocommerce, woocommerce search, product, product search, custom search, ajax, suggest, autosuggest, search autocomplete, live, plugin, sidebar, product tag search, products, woocommerce tag search, WooCommerce Plugin, shop, search by sku, relevant search, highlight, term, image, custom search, ecommerce, Predictive Search, search product, shop, typehead, suggest, instant-search
5
  Requires at least: 3.5
6
  Tested up to: 5.1
7
- Stable tag: 4.7.24
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -107,6 +107,9 @@ and will let you know what to do.
107
  2. Administrator area - nice and smooth
108
 
109
  == Changelog ==
 
 
 
110
  = 4.7.24 =
111
  * Image parser - now correctly parsing images from post excerpt and contents, even if these fields are not in use
112
 
4
  Tags: search, better wordpress search, search plugin, relevance search, widget, Post, ajax search, search filter, wp ajax search, custom fields search, better search, ajax search plugin, wp search, wp search plugin, filter, relevant search plugin, wordpress search, Live Search, shortcode, google, autocomplete, suggest, woocommerce, woocommerce search, product, product search, custom search, ajax, suggest, autosuggest, search autocomplete, live, plugin, sidebar, product tag search, products, woocommerce tag search, WooCommerce Plugin, shop, search by sku, relevant search, highlight, term, image, custom search, ecommerce, Predictive Search, search product, shop, typehead, suggest, instant-search
5
  Requires at least: 3.5
6
  Tested up to: 5.1
7
+ Stable tag: 4.7.25
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
107
  2. Administrator area - nice and smooth
108
 
109
  == Changelog ==
110
+ = 4.7.25 =
111
+ * Fixed an issue with the content image parser, that was introduced in the previous release by accident
112
+
113
  = 4.7.24 =
114
  * Image parser - now correctly parsing images from post excerpt and contents, even if these fields are not in use
115