Version Description
- Image parser - now correctly parsing images from post excerpt and contents, even if these fields are not in use
Download this release
Release Info
Developer | wpdreams |
Plugin | Ajax Search Lite |
Version | 4.7.24 |
Comparing to | |
See all releases |
Code changes from version 4.7.23 to 4.7.24
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.
|
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',
|
29 |
-
define('ASL_CURR_VER_STRING', "4.7.
|
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.24
|
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', 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 |
|
backend/settings/default_options.php
CHANGED
@@ -46,7 +46,7 @@ function asl_do_init_options() {
|
|
46 |
'theme' => 'simple-red',
|
47 |
'override_search_form' => 0,
|
48 |
'override_woo_search_form' => 0,
|
49 |
-
'keyword_logic' => "
|
50 |
'trigger_on_facet_change' => 1,
|
51 |
'redirect_click_to' => 'results_page',
|
52 |
'redirect_enter_to' => 'results_page',
|
46 |
'theme' => 'simple-red',
|
47 |
'override_search_form' => 0,
|
48 |
'override_woo_search_form' => 0,
|
49 |
+
'keyword_logic' => "and",
|
50 |
'trigger_on_facet_change' => 1,
|
51 |
'redirect_click_to' => 'results_page',
|
52 |
'redirect_enter_to' => 'results_page',
|
includes/classes/search/search_content.class.php
CHANGED
@@ -571,7 +571,8 @@ if ( ! class_exists( 'wpdreams_searchContent' ) ) {
|
|
571 |
// Dont select excerpt if its not used at all
|
572 |
$select_excerpt = (
|
573 |
w_isset_def($sd['titlefield'], 0) == 1 ||
|
574 |
-
w_isset_def($sd['descriptionfield'], 0) == 1
|
|
|
575 |
) ? $wpdb->posts. ".post_excerpt" : "''";
|
576 |
/*---------------------------------------------------------------*/
|
577 |
|
@@ -1156,9 +1157,16 @@ if ( ! class_exists( 'wpdreams_searchContent' ) ) {
|
|
1156 |
* @param $post WP_POst Post object
|
1157 |
* @return string image URL
|
1158 |
*/
|
1159 |
-
function getBFIimage( $post ) {
|
1160 |
$sd = $this->searchData;
|
1161 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1162 |
if ( ! isset( $post->image ) || $post->image == null ) {
|
1163 |
|
1164 |
if ( ! isset( $post->id ) ) {
|
@@ -1179,10 +1187,7 @@ if ( ! class_exists( 'wpdreams_searchContent' ) ) {
|
|
1179 |
}
|
1180 |
break;
|
1181 |
case "content":
|
1182 |
-
|
1183 |
-
$content = get_post_field('post_content', $post->id);
|
1184 |
-
else
|
1185 |
-
$content = $post->content;
|
1186 |
$content = apply_filters('the_content', $content);
|
1187 |
|
1188 |
$im = wpdreams_get_image_from_content( $content, 0 );
|
@@ -1191,7 +1196,9 @@ if ( ! class_exists( 'wpdreams_searchContent' ) ) {
|
|
1191 |
}
|
1192 |
break;
|
1193 |
case "excerpt":
|
1194 |
-
|
|
|
|
|
1195 |
if ( is_multisite() ) {
|
1196 |
$im = str_replace( home_url(), network_home_url(), $im );
|
1197 |
}
|
571 |
// Dont select excerpt if its not used at all
|
572 |
$select_excerpt = (
|
573 |
w_isset_def($sd['titlefield'], 0) == 1 ||
|
574 |
+
w_isset_def($sd['descriptionfield'], 0) == 1 ||
|
575 |
+
wd_in_array_r('excerpt', $this->imageSettings)
|
576 |
) ? $wpdb->posts. ".post_excerpt" : "''";
|
577 |
/*---------------------------------------------------------------*/
|
578 |
|
1157 |
* @param $post WP_POst Post object
|
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 |
|
1172 |
if ( ! isset( $post->id ) ) {
|
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 );
|
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() ) {
|
1203 |
$im = str_replace( home_url(), network_home_url(), $im );
|
1204 |
}
|
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.
|
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.23 =
|
111 |
* Exclude posts - input validation (to prevent extra commas at the end)
|
112 |
* Image parser - now correctly gets the first image from post contents/excerpts, instead of the second
|
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 |
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 |
+
|
113 |
= 4.7.23 =
|
114 |
* Exclude posts - input validation (to prevent extra commas at the end)
|
115 |
* Image parser - now correctly gets the first image from post contents/excerpts, instead of the second
|