Version Description
Released: Dec, 21 - 2018 =
Fix: possible warning when Add to Wishlist shortcode is called with no params
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Wishlist |
Version | 2.2.7 |
Comparing to | |
See all releases |
Code changes from version 2.2.6 to 2.2.7
- README.txt +5 -1
- includes/class.yith-wcwl-init.php +1 -1
- includes/class.yith-wcwl-shortcode.php +3 -1
- init.php +1 -1
README.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: wishlist, woocommerce, products, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, shop wishlist
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.0.0
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -109,6 +109,10 @@ you should ask theme developers to update custom templates and replace the old t
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
112 |
= 2.2.6 - Released: Dec, 21 - 2018 =
|
113 |
|
114 |
* New: added support to WordPress 5.0
|
4 |
Tags: wishlist, woocommerce, products, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, shop wishlist
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.0.0
|
7 |
+
Stable tag: 2.2.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 2.2.7 - Released: Dec, 21 - 2018 =
|
113 |
+
|
114 |
+
* Fix: possible warning when Add to Wishlist shortcode is called with no params
|
115 |
+
|
116 |
= 2.2.6 - Released: Dec, 21 - 2018 =
|
117 |
|
118 |
* New: added support to WordPress 5.0
|
includes/class.yith-wcwl-init.php
CHANGED
@@ -49,7 +49,7 @@ if ( ! class_exists( 'YITH_WCWL_Init' ) ) {
|
|
49 |
* @var string
|
50 |
* @since 1.0.0
|
51 |
*/
|
52 |
-
public $version = '2.2.
|
53 |
|
54 |
/**
|
55 |
* Plugin database version
|
49 |
* @var string
|
50 |
* @since 1.0.0
|
51 |
*/
|
52 |
+
public $version = '2.2.7';
|
53 |
|
54 |
/**
|
55 |
* Plugin database version
|
includes/class.yith-wcwl-shortcode.php
CHANGED
@@ -510,9 +510,11 @@ if( ! class_exists( 'YITH_WCWL_Shortcode' ) ) {
|
|
510 |
$additional_params = apply_filters( 'yith_wcwl_add_to_wishlist_params', $additional_params );
|
511 |
$additional_params['template_part'] = isset( $additional_params['template_part'] ) ? $additional_params['template_part'] : $template_part;
|
512 |
|
|
|
|
|
513 |
$atts = shortcode_atts(
|
514 |
$additional_params,
|
515 |
-
|
516 |
);
|
517 |
|
518 |
$atts['icon'] = ! empty( $atts['icon'] ) ? '<i class="fa ' . $atts['icon'] . '"></i>' : '';
|
510 |
$additional_params = apply_filters( 'yith_wcwl_add_to_wishlist_params', $additional_params );
|
511 |
$additional_params['template_part'] = isset( $additional_params['template_part'] ) ? $additional_params['template_part'] : $template_part;
|
512 |
|
513 |
+
$atts = is_array( $atts ) ? array_filter( $atts ) : $atts;
|
514 |
+
|
515 |
$atts = shortcode_atts(
|
516 |
$additional_params,
|
517 |
+
$atts
|
518 |
);
|
519 |
|
520 |
$atts['icon'] = ! empty( $atts['icon'] ) ? '<i class="fa ' . $atts['icon'] . '"></i>' : '';
|
init.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Wishlist
|
4 |
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-wishlist/
|
5 |
* Description: <code><strong>YITH WooCommerce Wishlist</strong></code> gives your users the possibility to create, fill, manage and share their wishlists allowing you to analyze their interests and needs to improve your marketing strategies. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce on <strong>YITH</strong></a>
|
6 |
-
* Version: 2.2.
|
7 |
* Author: YITH
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-wishlist
|
3 |
* Plugin Name: YITH WooCommerce Wishlist
|
4 |
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-wishlist/
|
5 |
* Description: <code><strong>YITH WooCommerce Wishlist</strong></code> gives your users the possibility to create, fill, manage and share their wishlists allowing you to analyze their interests and needs to improve your marketing strategies. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce on <strong>YITH</strong></a>
|
6 |
+
* Version: 2.2.7
|
7 |
* Author: YITH
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-wishlist
|