Version Description
Released: Jan, 31 - 2018 =
New: tested with WooCommerce 3.3.0
Fix: issue with Add to Wishlist shortcode when global $product not defined
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Wishlist |
Version | 2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.0 to 2.2.1
- README.txt +9 -11
- includes/class.yith-wcwl-init.php +1 -1
- includes/class.yith-wcwl-shortcode.php +1 -1
- init.php +2 -2
- plugin-fw/init.php +2 -2
- plugin-fw/lib/yit-debug.php +2 -1
- plugin-fw/lib/yit-upgrade.php +2 -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: 4.9.2
|
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,11 @@ you should ask theme developers to update custom templates and replace the old t
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
|
|
112 |
= 2.2.0 - Released: Jan, 11 - 2018 =
|
113 |
|
114 |
* New: WooCommerce 3.2.6 compatibility
|
@@ -447,14 +452,7 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
|
|
447 |
|
448 |
== Upgrade notice ==
|
449 |
|
450 |
-
= 2.2.
|
451 |
|
452 |
-
* New: WooCommerce 3.
|
453 |
-
*
|
454 |
-
* New: added js compatibility to Infinite Scrolling
|
455 |
-
* Tweak: improved wishlist-view template checks and params
|
456 |
-
* Tweak: wishlist now registers (and shows) "date added" param for unauthenticated users too
|
457 |
-
* Tweak: added check over product object, to avoid Fatal when printing Add to Wishlist shortcode
|
458 |
-
* Fix: fixed security vulnerability, causing possible SQL Injections (huge thanks to John C. and Sucuri Vulnerability Research team)
|
459 |
-
* Dev: added yith_wcwl_removing_from_wishlist / yith_wcwl_removed_from_wishlist hooks
|
460 |
-
* Dev: added params to main triggers in wishlist js code
|
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: 4.9.2
|
7 |
+
Stable tag: 2.2.1
|
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.1 - Released: Jan, 31 - 2018 =
|
113 |
+
|
114 |
+
* New: tested with WooCommerce 3.3.0
|
115 |
+
* Fix: issue with Add to Wishlist shortcode when global $product not defined
|
116 |
+
|
117 |
= 2.2.0 - Released: Jan, 11 - 2018 =
|
118 |
|
119 |
* New: WooCommerce 3.2.6 compatibility
|
452 |
|
453 |
== Upgrade notice ==
|
454 |
|
455 |
+
= 2.2.1 - Released: Jan, 31 - 2018 =
|
456 |
|
457 |
+
* New: tested with WooCommerce 3.3.0
|
458 |
+
* Fix: issue with Add to Wishlist shortcode when global $product not defined
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.1';
|
53 |
|
54 |
/**
|
55 |
* Plugin database version
|
includes/class.yith-wcwl-shortcode.php
CHANGED
@@ -322,7 +322,7 @@ if( ! class_exists( 'YITH_WCWL_Shortcode' ) ) {
|
|
322 |
$current_product = ( isset( $atts['product_id'] ) ) ? wc_get_product( $atts['product_id'] ) : false;
|
323 |
$current_product = $current_product ? $current_product : $product;
|
324 |
|
325 |
-
if( ! $
|
326 |
return '';
|
327 |
}
|
328 |
|
322 |
$current_product = ( isset( $atts['product_id'] ) ) ? wc_get_product( $atts['product_id'] ) : false;
|
323 |
$current_product = $current_product ? $current_product : $product;
|
324 |
|
325 |
+
if( ! $current_product ){
|
326 |
return '';
|
327 |
}
|
328 |
|
init.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Wishlist
|
4 |
* Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-wishlist/
|
5 |
* Description: YITH WooCommerce Wishlist allows you to add Wishlist functionality to your e-commerce.
|
6 |
-
* Version: 2.2.
|
7 |
* Author: YITHEMES
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-wishlist
|
10 |
* Domain Path: /languages/
|
11 |
* WC requires at least: 2.5.0
|
12 |
-
* WC tested up to: 3.
|
13 |
*
|
14 |
* @author YITHEMES
|
15 |
* @package YITH WooCommerce Wishlist
|
3 |
* Plugin Name: YITH WooCommerce Wishlist
|
4 |
* Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-wishlist/
|
5 |
* Description: YITH WooCommerce Wishlist allows you to add Wishlist functionality to your e-commerce.
|
6 |
+
* Version: 2.2.1
|
7 |
* Author: YITHEMES
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-wishlist
|
10 |
* Domain Path: /languages/
|
11 |
* WC requires at least: 2.5.0
|
12 |
+
* WC tested up to: 3.3.0
|
13 |
*
|
14 |
* @author YITHEMES
|
15 |
* @package YITH WooCommerce Wishlist
|
plugin-fw/init.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
-
* Version: 3.0.
|
5 |
* Author: Yithemes
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author Your Inspiration Themes
|
10 |
-
* @version 3.0.
|
11 |
*/
|
12 |
/**
|
13 |
* This file belongs to the YIT Plugin Framework.
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
+
* Version: 3.0.11
|
5 |
* Author: Yithemes
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author Your Inspiration Themes
|
10 |
+
* @version 3.0.11
|
11 |
*/
|
12 |
/**
|
13 |
* This file belongs to the YIT Plugin Framework.
|
plugin-fw/lib/yit-debug.php
CHANGED
@@ -234,7 +234,8 @@ if ( !class_exists( 'YITH_Debug' ) ) {
|
|
234 |
* @return string
|
235 |
*/
|
236 |
public function get_plugin_framework_info() {
|
237 |
-
$
|
|
|
238 |
$plugin_fw_loaded_by = basename( dirname( YIT_CORE_PLUGIN_PATH ) );
|
239 |
|
240 |
return "$plugin_fw_version (by $plugin_fw_loaded_by)";
|
234 |
* @return string
|
235 |
*/
|
236 |
public function get_plugin_framework_info() {
|
237 |
+
$plugin_fw_data = get_file_data( trailingslashit( YIT_CORE_PLUGIN_PATH ) . 'init.php', array( 'Version' => 'Version' ) );
|
238 |
+
$plugin_fw_version = $plugin_fw_data[ 'Version' ];
|
239 |
$plugin_fw_loaded_by = basename( dirname( YIT_CORE_PLUGIN_PATH ) );
|
240 |
|
241 |
return "$plugin_fw_version (by $plugin_fw_loaded_by)";
|
plugin-fw/lib/yit-upgrade.php
CHANGED
@@ -195,7 +195,8 @@ if ( !class_exists( 'YIT_Upgrade' ) ) {
|
|
195 |
} else {
|
196 |
//Bulk action upgrade
|
197 |
$action_url = parse_url( $upgrader->skin->options[ 'url' ] );
|
198 |
-
parse_str( rawurldecode( htmlspecialchars_decode( $action_url[ 'query' ] ) ) );
|
|
|
199 |
$plugins = explode( ',', $plugins );
|
200 |
foreach ( $plugins as $plugin_init ) {
|
201 |
$to_upgrade = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin_init );
|
195 |
} else {
|
196 |
//Bulk action upgrade
|
197 |
$action_url = parse_url( $upgrader->skin->options[ 'url' ] );
|
198 |
+
parse_str( rawurldecode( htmlspecialchars_decode( $action_url[ 'query' ] ) ), $output );
|
199 |
+
$plugins = isset( $output[ 'plugins' ] ) ? $output[ 'plugins' ] : '';
|
200 |
$plugins = explode( ',', $plugins );
|
201 |
foreach ( $plugins as $plugin_init ) {
|
202 |
$to_upgrade = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin_init );
|