Version Description
- Fixed - PHP 5 issue 'Default value for parameters with a class type hint can only be NULL'.
Download this release
Release Info
Developer | vinod dalvi |
Plugin | Ivory Search – WordPress Search Plugin |
Version | 5.4.1 |
Comparing to | |
See all releases |
Code changes from version 5.4 to 5.4.1
- add-search-to-menu.php +2 -2
- includes/class-is-index-helper.php +6 -3
- languages/add-search-to-menu.pot +1 -1
- public/class-is-index-search.php +1 -1
- readme.txt +4 -1
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: 5.4
|
8 |
* Author: Ivory Search
|
9 |
* Author URI: https://ivorysearch.com/
|
10 |
* License: GPL2+
|
@@ -110,7 +110,7 @@ final class Ivory_Search
|
|
110 |
public function define_constants()
|
111 |
{
|
112 |
if ( !defined( 'IS_VERSION' ) ) {
|
113 |
-
define( 'IS_VERSION', '5.4' );
|
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: 5.4.1
|
8 |
* Author: Ivory Search
|
9 |
* Author URI: https://ivorysearch.com/
|
10 |
* License: GPL2+
|
110 |
public function define_constants()
|
111 |
{
|
112 |
if ( !defined( 'IS_VERSION' ) ) {
|
113 |
+
define( 'IS_VERSION', '5.4.1' );
|
114 |
}
|
115 |
if ( !defined( 'IS_PLUGIN_FILE' ) ) {
|
116 |
define( 'IS_PLUGIN_FILE', __FILE__ );
|
includes/class-is-index-helper.php
CHANGED
@@ -657,13 +657,16 @@ class IS_Index_Helper {
|
|
657 |
* @return mixed False, if no result or $offset outside the length of $haystack,
|
658 |
* otherwise the position (which can be non-false 0!).
|
659 |
*/
|
660 |
-
public function stripos( $haystack, $needle,
|
661 |
if ( ! is_string( $haystack ) ) {
|
662 |
$haystack = strval( $haystack );
|
663 |
}
|
664 |
if ( ! is_string( $needle ) ) {
|
665 |
$needle = strval( $needle );
|
666 |
}
|
|
|
|
|
|
|
667 |
if ( $offset > $this->strlen( $haystack ) ) {
|
668 |
return false;
|
669 |
}
|
@@ -777,7 +780,7 @@ class IS_Index_Helper {
|
|
777 |
* omitted or null is passed, extract all characters to the end of the string.
|
778 |
* @return string $string The string in lowercase.
|
779 |
*/
|
780 |
-
public function substr( $string,
|
781 |
if ( ! is_string( $string ) ) {
|
782 |
$string = strval( $string );
|
783 |
}
|
@@ -798,7 +801,7 @@ class IS_Index_Helper {
|
|
798 |
* @param string $string The source string.
|
799 |
* @return string Trimmed string.
|
800 |
*/
|
801 |
-
public function mb_trim(
|
802 |
$string = str_replace( chr( 194 ) . chr( 160 ), '', $string );
|
803 |
$string = str_replace( "\0", '', $string );
|
804 |
$string = preg_replace( '/(^\s+)|(\s+$)/us', '', $string );
|
657 |
* @return mixed False, if no result or $offset outside the length of $haystack,
|
658 |
* otherwise the position (which can be non-false 0!).
|
659 |
*/
|
660 |
+
public function stripos( $haystack, $needle, $offset = 0 ) {
|
661 |
if ( ! is_string( $haystack ) ) {
|
662 |
$haystack = strval( $haystack );
|
663 |
}
|
664 |
if ( ! is_string( $needle ) ) {
|
665 |
$needle = strval( $needle );
|
666 |
}
|
667 |
+
if ( is_null( $offset ) ) {
|
668 |
+
$offset = 0;
|
669 |
+
}
|
670 |
if ( $offset > $this->strlen( $haystack ) ) {
|
671 |
return false;
|
672 |
}
|
780 |
* omitted or null is passed, extract all characters to the end of the string.
|
781 |
* @return string $string The string in lowercase.
|
782 |
*/
|
783 |
+
public function substr( $string, $start, $length = null ) {
|
784 |
if ( ! is_string( $string ) ) {
|
785 |
$string = strval( $string );
|
786 |
}
|
801 |
* @param string $string The source string.
|
802 |
* @return string Trimmed string.
|
803 |
*/
|
804 |
+
public function mb_trim( $string ) {
|
805 |
$string = str_replace( chr( 194 ) . chr( 160 ), '', $string );
|
806 |
$string = str_replace( "\0", '', $string );
|
807 |
$string = preg_replace( '/(^\s+)|(\s+$)/us', '', $string );
|
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: 2022-01-
|
6 |
"PO-Revision-Date: 2020-03-17 21:05+0530\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: Ivory Search <admin@ivorysearch.com>\n"
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Ivory Search\n"
|
5 |
+
"POT-Creation-Date: 2022-01-06 19:03+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"
|
public/class-is-index-search.php
CHANGED
@@ -230,7 +230,7 @@ class IS_Index_Search {
|
|
230 |
* @param WP_Query $query The WP Query object.
|
231 |
* @return array An array with the low boundary first, the high boundary second.
|
232 |
*/
|
233 |
-
protected function get_boundaries( $query )
|
234 |
$hits_count = $query->found_posts;
|
235 |
|
236 |
if ( isset( $query->query_vars['paged'] ) && $query->query_vars['paged'] > 0 ) {
|
230 |
* @param WP_Query $query The WP Query object.
|
231 |
* @return array An array with the low boundary first, the high boundary second.
|
232 |
*/
|
233 |
+
protected function get_boundaries( $query ) {
|
234 |
$hits_count = $query->found_posts;
|
235 |
|
236 |
if ( isset( $query->query_vars['paged'] ) && $query->query_vars['paged'] > 0 ) {
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: search, woocommerce search, image search, ajax search, search shortcode, l
|
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 5.9
|
7 |
Requires PHP: 5.2.4
|
8 |
-
Stable tag: 5.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -197,6 +197,9 @@ Yes we do. We try our best to help free users with customisation requests and we
|
|
197 |
|
198 |
== Changelog ==
|
199 |
|
|
|
|
|
|
|
200 |
= 5.4 =
|
201 |
* Fixed - PHP 5.2 compatibility issue.
|
202 |
* Fixed - Index build max execution time not working.
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 5.9
|
7 |
Requires PHP: 5.2.4
|
8 |
+
Stable tag: 5.4.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
197 |
|
198 |
== Changelog ==
|
199 |
|
200 |
+
= 5.4.1 =
|
201 |
+
* Fixed - PHP 5 issue 'Default value for parameters with a class type hint can only be NULL'.
|
202 |
+
|
203 |
= 5.4 =
|
204 |
* Fixed - PHP 5.2 compatibility issue.
|
205 |
* Fixed - Index build max execution time not working.
|