Version Description
- Fixes PHP Notice introduced in 1.6.0
Download this release
Release Info
| Developer | griffinjt |
| Plugin | |
| Version | 1.6.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.6.0 to 1.6.1
- includes/class-form.php +0 -2
- readme.txt +11 -8
- searchwp-live-ajax-search.php +10 -6
includes/class-form.php
CHANGED
|
@@ -109,8 +109,6 @@ class SearchWP_Live_Search_Form extends SearchWP_Live_Search {
|
|
| 109 |
</script>
|
| 110 |
<?php
|
| 111 |
}
|
| 112 |
-
|
| 113 |
-
return $classes;
|
| 114 |
}
|
| 115 |
|
| 116 |
/**
|
| 109 |
</script>
|
| 110 |
<?php
|
| 111 |
}
|
|
|
|
|
|
|
| 112 |
}
|
| 113 |
|
| 114 |
/**
|
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: jchristopher
|
| 3 |
Tags: search, live, ajax
|
| 4 |
Requires at least: 3.9
|
| 5 |
-
Tested up to: 5.
|
| 6 |
-
Stable tag: 1.6.
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
|
@@ -11,7 +11,7 @@ Template powered live search for any WordPress theme. Does not require SearchWP,
|
|
| 11 |
|
| 12 |
== Description ==
|
| 13 |
|
| 14 |
-
**Does not require** [SearchWP](https://searchwp.com/?utm_source=wordpressorg&utm_medium=link&utm_content=readme&utm_campaign=liveajaxsearch), but will utilize it if available. [Full documentation](https://searchwp.com/
|
| 15 |
|
| 16 |
Contributions welcome on GitHub! [https://github.com/jchristopher/searchwp-live-ajax-search/](https://github.com/jchristopher/searchwp-live-ajax-search/)
|
| 17 |
|
|
@@ -36,14 +36,14 @@ SearchWP Live Ajax Search ships with a Widget allowing you to insert live search
|
|
| 36 |
1. Download the plugin and extract the files
|
| 37 |
1. Upload `searchwp-live-search` to your `~/wp-content/plugins/` directory
|
| 38 |
1. Activate the plugin through the 'Plugins' menu in WordPress
|
| 39 |
-
1. Optionally customize the configuration: [full documentation](https://searchwp.com/
|
| 40 |
-
1. Optionally customize the results template: [full documentation](https://searchwp.com/
|
| 41 |
|
| 42 |
== Frequently Asked Questions ==
|
| 43 |
|
| 44 |
= Documentation? =
|
| 45 |
|
| 46 |
-
Of course! [Full documentation](https://searchwp.com/
|
| 47 |
|
| 48 |
= How do I add live search to my search form? =
|
| 49 |
|
|
@@ -61,11 +61,11 @@ By default, SearchWP Live Ajax Search uses the default SearchWP Search Engine if
|
|
| 61 |
|
| 62 |
SearchWP Live Ajax Search uses a template loader. In the plugin folder you will find a `templates` folder which includes `search-results.php` — that is what's used out of the box to output search results. To customize that output, simply create a folder called `searchwp-live-ajax-search` **in your theme directory** and copy `search-results.php` into that folder. SearchWP Live Ajax Search will then *use that file* instead of the one that shipped with the plugin, and you can customize it as you would other theme template files.
|
| 63 |
|
| 64 |
-
SearchWP Live Ajax Search also outputs two sets of styles. The primary set of styles simply preps the results wrapper to be positioned properly. The second set of styles controls the visual appearance. This abstraction was made to ensure customization is as straighforward as possible. You can disable the default 'theme' by dequeueing the applicable stylesheet, and you can also disable the foundational CSS as well. More information available in [the documentation](https://searchwp.com/
|
| 65 |
|
| 66 |
= How do I customize the spinner =
|
| 67 |
|
| 68 |
-
SearchWP Live Ajax Search uses a filter — <a href="https://searchwp.com/
|
| 69 |
|
| 70 |
== Screenshots ==
|
| 71 |
|
|
@@ -76,6 +76,9 @@ SearchWP Live Ajax Search uses a filter — <a href="https://searchwp.com/docs/
|
|
| 76 |
|
| 77 |
== Changelog ==
|
| 78 |
|
|
|
|
|
|
|
|
|
|
| 79 |
= 1.6.0 =
|
| 80 |
* Adds support search form block in block editor (Gutenberg)
|
| 81 |
|
| 2 |
Contributors: jchristopher
|
| 3 |
Tags: search, live, ajax
|
| 4 |
Requires at least: 3.9
|
| 5 |
+
Tested up to: 5.9.1
|
| 6 |
+
Stable tag: 1.6.1
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
| 11 |
|
| 12 |
== Description ==
|
| 13 |
|
| 14 |
+
**Does not require** [SearchWP](https://searchwp.com/?utm_source=wordpressorg&utm_medium=link&utm_content=readme&utm_campaign=liveajaxsearch), but will utilize it if available. [Full documentation](https://searchwp.com/extensions/live-search/) is available at searchwp.com.
|
| 15 |
|
| 16 |
Contributions welcome on GitHub! [https://github.com/jchristopher/searchwp-live-ajax-search/](https://github.com/jchristopher/searchwp-live-ajax-search/)
|
| 17 |
|
| 36 |
1. Download the plugin and extract the files
|
| 37 |
1. Upload `searchwp-live-search` to your `~/wp-content/plugins/` directory
|
| 38 |
1. Activate the plugin through the 'Plugins' menu in WordPress
|
| 39 |
+
1. Optionally customize the configuration: [full documentation](https://searchwp.com/extensions/live-search/)
|
| 40 |
+
1. Optionally customize the results template: [full documentation](https://searchwp.com/extensions/live-search/)
|
| 41 |
|
| 42 |
== Frequently Asked Questions ==
|
| 43 |
|
| 44 |
= Documentation? =
|
| 45 |
|
| 46 |
+
Of course! [Full documentation](https://searchwp.com/extensions/live-search/)
|
| 47 |
|
| 48 |
= How do I add live search to my search form? =
|
| 49 |
|
| 61 |
|
| 62 |
SearchWP Live Ajax Search uses a template loader. In the plugin folder you will find a `templates` folder which includes `search-results.php` — that is what's used out of the box to output search results. To customize that output, simply create a folder called `searchwp-live-ajax-search` **in your theme directory** and copy `search-results.php` into that folder. SearchWP Live Ajax Search will then *use that file* instead of the one that shipped with the plugin, and you can customize it as you would other theme template files.
|
| 63 |
|
| 64 |
+
SearchWP Live Ajax Search also outputs two sets of styles. The primary set of styles simply preps the results wrapper to be positioned properly. The second set of styles controls the visual appearance. This abstraction was made to ensure customization is as straighforward as possible. You can disable the default 'theme' by dequeueing the applicable stylesheet, and you can also disable the foundational CSS as well. More information available in [the documentation](https://searchwp.com/extensions/live-search/#customizing-results).
|
| 65 |
|
| 66 |
= How do I customize the spinner =
|
| 67 |
|
| 68 |
+
SearchWP Live Ajax Search uses a filter — <a href="https://searchwp.com/extensions/live-search/#searchwp_live_search_configs"><code>searchwp_live_search_configs</code></a> — that allows you to fully customize the configuration used. Simply add a new key to the array passed through that filter, customizing the `default` values to whatever you want.
|
| 69 |
|
| 70 |
== Screenshots ==
|
| 71 |
|
| 76 |
|
| 77 |
== Changelog ==
|
| 78 |
|
| 79 |
+
= 1.6.1 =
|
| 80 |
+
* Fixes PHP Notice introduced in 1.6.0
|
| 81 |
+
|
| 82 |
= 1.6.0 =
|
| 83 |
* Adds support search form block in block editor (Gutenberg)
|
| 84 |
|
searchwp-live-ajax-search.php
CHANGED
|
@@ -3,11 +3,12 @@
|
|
| 3 |
Plugin Name: SearchWP Live Ajax Search
|
| 4 |
Plugin URI: https://searchwp.com/
|
| 5 |
Description: Enhance your search forms with live search, powered by SearchWP (if installed)
|
| 6 |
-
Version: 1.6.
|
| 7 |
Requires PHP: 5.6
|
| 8 |
Author: SearchWP, LLC
|
| 9 |
Author URI: https://searchwp.com/
|
| 10 |
Text Domain: searchwp-live-ajax-search
|
|
|
|
| 11 |
|
| 12 |
Copyright 2014-2021 SearchWP, LLC
|
| 13 |
|
|
@@ -43,7 +44,7 @@ include_once( dirname( __FILE__ ) . '/includes/class-widget.php' );
|
|
| 43 |
class SearchWP_Live_Search {
|
| 44 |
public $dir;
|
| 45 |
public $url;
|
| 46 |
-
public $version = '1.6.
|
| 47 |
public $results = array();
|
| 48 |
|
| 49 |
function __construct() {
|
|
@@ -54,8 +55,6 @@ class SearchWP_Live_Search {
|
|
| 54 |
}
|
| 55 |
|
| 56 |
function upgrade() {
|
| 57 |
-
global $wpdb;
|
| 58 |
-
|
| 59 |
$last_version = get_option( 'searchwp_live_search_version' );
|
| 60 |
|
| 61 |
if ( false === $last_version ) {
|
|
@@ -66,9 +65,14 @@ class SearchWP_Live_Search {
|
|
| 66 |
return;
|
| 67 |
}
|
| 68 |
|
| 69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
-
|
|
|
|
| 72 |
}
|
| 73 |
}
|
| 74 |
|
| 3 |
Plugin Name: SearchWP Live Ajax Search
|
| 4 |
Plugin URI: https://searchwp.com/
|
| 5 |
Description: Enhance your search forms with live search, powered by SearchWP (if installed)
|
| 6 |
+
Version: 1.6.1
|
| 7 |
Requires PHP: 5.6
|
| 8 |
Author: SearchWP, LLC
|
| 9 |
Author URI: https://searchwp.com/
|
| 10 |
Text Domain: searchwp-live-ajax-search
|
| 11 |
+
Tested up to: 5.9.1
|
| 12 |
|
| 13 |
Copyright 2014-2021 SearchWP, LLC
|
| 14 |
|
| 44 |
class SearchWP_Live_Search {
|
| 45 |
public $dir;
|
| 46 |
public $url;
|
| 47 |
+
public $version = '1.6.1';
|
| 48 |
public $results = array();
|
| 49 |
|
| 50 |
function __construct() {
|
| 55 |
}
|
| 56 |
|
| 57 |
function upgrade() {
|
|
|
|
|
|
|
| 58 |
$last_version = get_option( 'searchwp_live_search_version' );
|
| 59 |
|
| 60 |
if ( false === $last_version ) {
|
| 65 |
return;
|
| 66 |
}
|
| 67 |
|
| 68 |
+
if ( version_compare( $this->last_version, '1.6.1', '<' ) ) {
|
| 69 |
+
update_option( 'searchwp_live_search_last_update', current_time( 'timestamp' ) );
|
| 70 |
+
$this->after_upgrade();
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
|
| 74 |
+
function after_upgrade() {
|
| 75 |
+
update_option( 'searchwp_live_search_version', $this->version );
|
| 76 |
}
|
| 77 |
}
|
| 78 |
|
