Version Description
- Fixed - Empty button accessibility issue.
Download this release
Release Info
Developer | vinod dalvi |
Plugin | Ivory Search – WordPress Search Plugin |
Version | 4.5.11 |
Comparing to | |
See all releases |
Code changes from version 4.5.10 to 4.5.11
- add-search-to-menu.php +4 -4
- admin/class-is-editor.php +1 -1
- includes/class-is-search-form.php +1 -1
- includes/class-is.php +1 -1
- languages/add-search-to-menu.pot +2 -1
- public/class-is-public.php +8 -8
- readme.txt +4 -1
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.5.
|
7 |
* Author: Ivory Search
|
8 |
* Author URI: https://ivorysearch.com/
|
9 |
* License: GPL2+
|
@@ -12,7 +12,7 @@
|
|
12 |
* Text Domain: add-search-to-menu
|
13 |
*
|
14 |
*
|
15 |
-
* WC tested up to:
|
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
|
@@ -108,7 +108,7 @@ final class Ivory_Search {
|
|
108 |
private function define_constants() {
|
109 |
|
110 |
if ( ! defined( 'IS_VERSION' ) ) {
|
111 |
-
define( 'IS_VERSION', '4.5.
|
112 |
}
|
113 |
if ( ! defined( 'IS_PLUGIN_FILE' ) ) {
|
114 |
define( 'IS_PLUGIN_FILE', __FILE__ );
|
@@ -182,4 +182,4 @@ function ivory_search_start(){
|
|
182 |
$is = Ivory_Search::getInstance();
|
183 |
$is->start();
|
184 |
}
|
185 |
-
add_action( 'plugins_loaded', 'ivory_search_start' );
|
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.5.11
|
7 |
* Author: Ivory Search
|
8 |
* Author URI: https://ivorysearch.com/
|
9 |
* License: GPL2+
|
12 |
* Text Domain: add-search-to-menu
|
13 |
*
|
14 |
*
|
15 |
+
* WC tested up to: 5
|
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
|
108 |
private function define_constants() {
|
109 |
|
110 |
if ( ! defined( 'IS_VERSION' ) ) {
|
111 |
+
define( 'IS_VERSION', '4.5.11' );
|
112 |
}
|
113 |
if ( ! defined( 'IS_PLUGIN_FILE' ) ) {
|
114 |
define( 'IS_PLUGIN_FILE', __FILE__ );
|
182 |
$is = Ivory_Search::getInstance();
|
183 |
$is->start();
|
184 |
}
|
185 |
+
add_action( 'plugins_loaded', 'ivory_search_start' );
|
admin/class-is-editor.php
CHANGED
@@ -848,7 +848,7 @@ class IS_Search_Editor
|
|
848 |
if ( !$enable_customize ) {
|
849 |
$customizer_url = "//" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
850 |
}
|
851 |
-
echo '<a style="font-size: 20px;font-weight: 800; padding: 25px 0;display: block;text-align: center;box-shadow:none;"class="is-customize-link" href="' . $customizer_url . '">' . __( "Search Form Customizer", "ivory-search" ) . '</a>' ;
|
852 |
}
|
853 |
|
854 |
?>
|
848 |
if ( !$enable_customize ) {
|
849 |
$customizer_url = "//" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
850 |
}
|
851 |
+
echo '<a style="font-size: 20px;font-weight: 800; padding: 25px 0;display: block;text-align: center;box-shadow:none;"class="is-customize-link" href="' . esc_url( $customizer_url ) . '">' . __( "Search Form Customizer", "ivory-search" ) . '</a>' ;
|
852 |
}
|
853 |
|
854 |
?>
|
includes/class-is-search-form.php
CHANGED
@@ -535,7 +535,7 @@ class IS_Search_Form {
|
|
535 |
}
|
536 |
$result .= '</label>';
|
537 |
if ( 'is-form-style-3' === $form_style ) {
|
538 |
-
$result .= '<button type="submit" class="is-search-submit"><span class="is-search-icon"><svg focusable="false" aria-label="' . __( "Search", "ivory-search" ) . '" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24px"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></svg></span></button>';
|
539 |
} else if ( 'is-form-style-2' !== $form_style ) {
|
540 |
$result .= '<input type="submit" value="' . esc_html( $search_btn_text ) . '" class="is-search-submit" />';
|
541 |
}
|
535 |
}
|
536 |
$result .= '</label>';
|
537 |
if ( 'is-form-style-3' === $form_style ) {
|
538 |
+
$result .= '<button type="submit" class="is-search-submit"><span class="is-screen-reader-text">'.__( 'Search Button', 'add-search-to-menu').'</span><span class="is-search-icon"><svg focusable="false" aria-label="' . __( "Search", "ivory-search" ) . '" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24px"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></svg></span></button>';
|
539 |
} else if ( 'is-form-style-2' !== $form_style ) {
|
540 |
$result .= '<input type="submit" value="' . esc_html( $search_btn_text ) . '" class="is-search-submit" />';
|
541 |
}
|
includes/class-is.php
CHANGED
@@ -157,7 +157,7 @@ class IS_Loader {
|
|
157 |
add_filter( 'posts_distinct_request', array( $public, 'posts_distinct_request' ), 9999999, 2 );
|
158 |
add_filter( 'posts_join' , array( $public, 'posts_join' ), 9999999, 2 );
|
159 |
add_filter( 'posts_search', array( $public, 'posts_search' ), 9999999, 2 );
|
160 |
-
add_action( 'pre_get_posts', array( $public, 'pre_get_posts' ),
|
161 |
add_action( 'wp_footer', array( $public, 'wp_footer' ) );
|
162 |
add_action( 'wp_head', array( $public, 'wp_head' ), 9999999 );
|
163 |
}, 9999999 );
|
157 |
add_filter( 'posts_distinct_request', array( $public, 'posts_distinct_request' ), 9999999, 2 );
|
158 |
add_filter( 'posts_join' , array( $public, 'posts_join' ), 9999999, 2 );
|
159 |
add_filter( 'posts_search', array( $public, 'posts_search' ), 9999999, 2 );
|
160 |
+
add_action( 'pre_get_posts', array( $public, 'pre_get_posts' ), 9 );
|
161 |
add_action( 'wp_footer', array( $public, 'wp_footer' ) );
|
162 |
add_action( 'wp_head', array( $public, 'wp_head' ), 9999999 );
|
163 |
}, 9999999 );
|
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:
|
6 |
"PO-Revision-Date: 2020-03-17 21:05+0530\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: Ivory Search <admin@ivorysearch.com>\n"
|
@@ -1554,6 +1554,7 @@ msgid "Text Box Placeholder"
|
|
1554 |
msgstr ""
|
1555 |
|
1556 |
#: ../includes/class-is-admin-public.php:190
|
|
|
1557 |
msgid "Search Button"
|
1558 |
msgstr ""
|
1559 |
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Ivory Search\n"
|
5 |
+
"POT-Creation-Date: 2021-01-29 22:22+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"
|
1554 |
msgstr ""
|
1555 |
|
1556 |
#: ../includes/class-is-admin-public.php:190
|
1557 |
+
#: ../includes/class-is-search-form.php:538
|
1558 |
msgid "Search Button"
|
1559 |
msgstr ""
|
1560 |
|
public/class-is-public.php
CHANGED
@@ -346,14 +346,6 @@ class IS_Public
|
|
346 |
}
|
347 |
|
348 |
|
349 |
-
if ( !isset( $query->query_vars['s'] ) || empty($query->query_vars['s']) ) {
|
350 |
-
$query->set( 's', $query->query['s'] );
|
351 |
-
$query->set( 'post__in', false );
|
352 |
-
$query->set( 'orderby', 'date' );
|
353 |
-
}
|
354 |
-
|
355 |
-
$q = $query->query_vars;
|
356 |
-
|
357 |
if ( '' === $is_id ) {
|
358 |
if ( isset( $this->opt['default_search'] ) ) {
|
359 |
return;
|
@@ -365,6 +357,14 @@ class IS_Public
|
|
365 |
}
|
366 |
|
367 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
368 |
if ( '' !== $is_id && is_numeric( $is_id ) ) {
|
369 |
|
370 |
if ( function_exists( 'pll_current_language' ) ) {
|
346 |
}
|
347 |
|
348 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
if ( '' === $is_id ) {
|
350 |
if ( isset( $this->opt['default_search'] ) ) {
|
351 |
return;
|
357 |
}
|
358 |
|
359 |
|
360 |
+
if ( !isset( $query->query_vars['s'] ) || empty($query->query_vars['s']) ) {
|
361 |
+
$query->set( 's', $query->query['s'] );
|
362 |
+
$query->set( 'post__in', false );
|
363 |
+
$query->set( 'orderby', 'date' );
|
364 |
+
}
|
365 |
+
|
366 |
+
$q = $query->query_vars;
|
367 |
+
|
368 |
if ( '' !== $is_id && is_numeric( $is_id ) ) {
|
369 |
|
370 |
if ( function_exists( 'pll_current_language' ) ) {
|
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.6
|
7 |
Requires PHP: 5.2.4
|
8 |
-
Stable tag: 4.5.
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -193,6 +193,9 @@ Yes we do. We try our best to help free users with customisation requests and we
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
196 |
= 4.5.10 =
|
197 |
* Fixed - Gutenberg editor issue "Update failed. The response is not a valid JSON response."
|
198 |
* Fixed - Full width mobile header menu was not working.
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.2.4
|
8 |
+
Stable tag: 4.5.11
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
193 |
|
194 |
== Changelog ==
|
195 |
|
196 |
+
= 4.5.11 =
|
197 |
+
* Fixed - Empty button accessibility issue.
|
198 |
+
|
199 |
= 4.5.10 =
|
200 |
* Fixed - Gutenberg editor issue "Update failed. The response is not a valid JSON response."
|
201 |
* Fixed - Full width mobile header menu was not working.
|