Version Description
Release Date - 03 March 2017
- Fixed an issue with external products link
Download this release
Release Info
Developer | templateinvaders |
Plugin | WooCommerce Wishlist Plugin |
Version | 1.1.11 |
Comparing to | |
See all releases |
Code changes from version 1.1.10 to 1.1.11
- includes/update.helper.php +4 -0
- public/wishlist/view.class.php +7 -3
- readme.txt +7 -1
- ti-woocommerce-wishlist.php +2 -2
- tinv-wishlists-function.php +13 -0
includes/update.helper.php
CHANGED
@@ -107,4 +107,8 @@ class TInvWL_Update {
|
|
107 |
function up_0_0_0( $previous_version = 0 ) {
|
108 |
|
109 |
}
|
|
|
|
|
|
|
|
|
110 |
}
|
107 |
function up_0_0_0( $previous_version = 0 ) {
|
108 |
|
109 |
}
|
110 |
+
|
111 |
+
function up_1_1_10_1( $previous_version = 0 ) {
|
112 |
+
update_option( 'tinvwl_wizard', true );
|
113 |
+
}
|
114 |
}
|
public/wishlist/view.class.php
CHANGED
@@ -282,12 +282,16 @@ class TInvWL_Public_Wishlist_View {
|
|
282 |
return false;
|
283 |
}
|
284 |
$need_url = apply_filters( 'woocommerce_product_add_to_cart_url', remove_query_arg( 'added-to-cart', add_query_arg( array_filter( array_merge( array( 'variation_id' => $product['data']->variation_id, 'add-to-cart' => $product['data']->id ), array_map( 'urlencode', (array) $product['data']->variation_data ) ) ) ) ), $product['data'] );
|
285 |
-
|
286 |
-
|
|
|
|
|
|
|
|
|
287 |
return true;
|
288 |
}
|
289 |
if ( apply_filters( 'tinvwl_product_add_to_cart_need_redirect', false, $product['data'] ) ) {
|
290 |
-
wp_redirect(
|
291 |
return true;
|
292 |
}
|
293 |
|
282 |
return false;
|
283 |
}
|
284 |
$need_url = apply_filters( 'woocommerce_product_add_to_cart_url', remove_query_arg( 'added-to-cart', add_query_arg( array_filter( array_merge( array( 'variation_id' => $product['data']->variation_id, 'add-to-cart' => $product['data']->id ), array_map( 'urlencode', (array) $product['data']->variation_data ) ) ) ) ), $product['data'] );
|
285 |
+
|
286 |
+
add_filter( 'clean_url', 'tinvwl_clean_url', 10, 2 );
|
287 |
+
$redirect_url = apply_filters( 'tinvwl_product_add_to_cart_redirect_url', $product['data']->add_to_cart_url(), $product['data'] );
|
288 |
+
remove_filter( 'clean_url', 'tinvwl_clean_url', 10 );
|
289 |
+
if ( 'external' === $product['data']->product_type || $redirect_url !== $need_url ) {
|
290 |
+
wp_redirect( $redirect_url ); // @codingStandardsIgnoreLine WordPress.VIP.RestrictedFunctions.wp_redirect
|
291 |
return true;
|
292 |
}
|
293 |
if ( apply_filters( 'tinvwl_product_add_to_cart_need_redirect', false, $product['data'] ) ) {
|
294 |
+
wp_redirect( $redirect_url ); // @codingStandardsIgnoreLine WordPress.VIP.RestrictedFunctions.wp_redirect
|
295 |
return true;
|
296 |
}
|
297 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://templateinvaders.com/
|
|
4 |
Tags: wishlist, woocommerce, products, e-commerce, shop, ecommerce wishlist, woocommerce wishlist, woocommerce , shop wishlist, wishlist for Woocommerce
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.7.2
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -114,6 +114,12 @@ There are few ways to install TI WooCommerce Wishlist plugin:
|
|
114 |
|
115 |
== Changelog ==
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
= 1.1.10 =
|
118 |
*Release Date - 02 March 2017*
|
119 |
|
4 |
Tags: wishlist, woocommerce, products, e-commerce, shop, ecommerce wishlist, woocommerce wishlist, woocommerce , shop wishlist, wishlist for Woocommerce
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.7.2
|
7 |
+
Stable tag: 1.1.11
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
114 |
|
115 |
== Changelog ==
|
116 |
|
117 |
+
= 1.1.11 =
|
118 |
+
*Release Date - 03 March 2017*
|
119 |
+
|
120 |
+
* Fixed an issue with external products link
|
121 |
+
|
122 |
+
|
123 |
= 1.1.10 =
|
124 |
*Release Date - 02 March 2017*
|
125 |
|
ti-woocommerce-wishlist.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: TI WooCommerce Wishlist
|
5 |
* Plugin URI: https://templateinvaders.com/product/ti-woocommerce-wishlist-wordpress-plugin/
|
6 |
* Description: Wishlist functionality for your WooCommerce store.
|
7 |
-
* Version: 1.1.
|
8 |
* Author: Template Invaders
|
9 |
* Author URI: https://templateinvaders.com/
|
10 |
* License: GPL-2.0+
|
@@ -37,7 +37,7 @@ if ( ! defined( 'TINVWL_DOMAIN' ) ) {
|
|
37 |
}
|
38 |
|
39 |
if ( ! defined( 'TINVWL_FVERSION' ) ) {
|
40 |
-
define( 'TINVWL_FVERSION', '1.1.
|
41 |
}
|
42 |
|
43 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|
4 |
* Plugin Name: TI WooCommerce Wishlist
|
5 |
* Plugin URI: https://templateinvaders.com/product/ti-woocommerce-wishlist-wordpress-plugin/
|
6 |
* Description: Wishlist functionality for your WooCommerce store.
|
7 |
+
* Version: 1.1.11
|
8 |
* Author: Template Invaders
|
9 |
* Author URI: https://templateinvaders.com/
|
10 |
* License: GPL-2.0+
|
37 |
}
|
38 |
|
39 |
if ( ! defined( 'TINVWL_FVERSION' ) ) {
|
40 |
+
define( 'TINVWL_FVERSION', '1.1.11' );
|
41 |
}
|
42 |
|
43 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|
tinv-wishlists-function.php
CHANGED
@@ -743,3 +743,16 @@ if ( ! function_exists( 'tinvwl_view_addto_htmlout' ) ) {
|
|
743 |
$class->htmloutput_out();
|
744 |
}
|
745 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
743 |
$class->htmloutput_out();
|
744 |
}
|
745 |
}
|
746 |
+
|
747 |
+
if ( ! function_exists( 'tinvwl_clean_url' ) ) {
|
748 |
+
/**
|
749 |
+
* Clear esc_url to original
|
750 |
+
*
|
751 |
+
* @param string $good_protocol_url Cleared URL.
|
752 |
+
* @param string $original_url Original URL.
|
753 |
+
* @return string
|
754 |
+
*/
|
755 |
+
function tinvwl_clean_url( $good_protocol_url, $original_url ) {
|
756 |
+
return $original_url;
|
757 |
+
}
|
758 |
+
}
|