Version Description
Release Date - 29 August 2018 * Fixed fatal errors when 3rd party code using global product object outside a loop
Download this release
Release Info
Developer | templateinvaders |
Plugin | WooCommerce Wishlist Plugin |
Version | 1.8.14 |
Comparing to | |
See all releases |
Code changes from version 1.8.13 to 1.8.14
- assets/css/admin-form.min.css +1 -1
- assets/css/admin-setup.min.css +1 -1
- assets/css/admin.min.css +1 -1
- assets/css/public.min.css +1 -1
- assets/css/theme.min.css +1 -1
- assets/js/admin.min.js +1 -1
- assets/js/public.min.js +1 -1
- languages/ti-woocommerce-wishlist.pot +8 -8
- public/wishlist/view.class.php +30 -11
- readme.txt +6 -2
- ti-woocommerce-wishlist.php +2 -2
assets/css/admin-form.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.8.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.8.14
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
assets/css/admin-setup.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.8.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.8.14
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
assets/css/admin.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.8.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.8.14
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
assets/css/public.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.8.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.8.14
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
assets/css/theme.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.8.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.8.14
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
assets/js/admin.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.8.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.8.14
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
assets/js/public.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.8.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.8.14
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
languages/ti-woocommerce-wishlist.pot
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the GPL-2.0+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WooCommerce Wishlist Plugin 1.8.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/ti-woocommerce-wishlist\n"
|
8 |
-
"POT-Creation-Date: 2018-08-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -983,7 +983,7 @@ msgstr ""
|
|
983 |
msgid "Remove"
|
984 |
msgstr ""
|
985 |
|
986 |
-
#: public/wishlist/buttons.class.php:457 public/wishlist/view.class.php:
|
987 |
msgid "“%s”"
|
988 |
msgstr ""
|
989 |
|
@@ -993,23 +993,23 @@ msgid_plural "%s have been successfully removed from wishlist."
|
|
993 |
msgstr[0] ""
|
994 |
msgstr[1] ""
|
995 |
|
996 |
-
#: public/wishlist/view.class.php:
|
997 |
msgid "%s has been removed from wishlist."
|
998 |
msgstr ""
|
999 |
|
1000 |
-
#: public/wishlist/view.class.php:
|
1001 |
msgid "%s has not been removed from wishlist."
|
1002 |
msgstr ""
|
1003 |
|
1004 |
-
#: public/wishlist/view.class.php:
|
1005 |
msgid "Return to Wishlist"
|
1006 |
msgstr ""
|
1007 |
|
1008 |
-
#: public/wishlist/view.class.php:
|
1009 |
msgid "Previous Page"
|
1010 |
msgstr ""
|
1011 |
|
1012 |
-
#: public/wishlist/view.class.php:
|
1013 |
msgid "Next Page"
|
1014 |
msgstr ""
|
1015 |
|
2 |
# This file is distributed under the GPL-2.0+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce Wishlist Plugin 1.8.14\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/ti-woocommerce-wishlist\n"
|
8 |
+
"POT-Creation-Date: 2018-08-29 01:25:19+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
983 |
msgid "Remove"
|
984 |
msgstr ""
|
985 |
|
986 |
+
#: public/wishlist/buttons.class.php:457 public/wishlist/view.class.php:327
|
987 |
msgid "“%s”"
|
988 |
msgstr ""
|
989 |
|
993 |
msgstr[0] ""
|
994 |
msgstr[1] ""
|
995 |
|
996 |
+
#: public/wishlist/view.class.php:337
|
997 |
msgid "%s has been removed from wishlist."
|
998 |
msgstr ""
|
999 |
|
1000 |
+
#: public/wishlist/view.class.php:339
|
1001 |
msgid "%s has not been removed from wishlist."
|
1002 |
msgstr ""
|
1003 |
|
1004 |
+
#: public/wishlist/view.class.php:470
|
1005 |
msgid "Return to Wishlist"
|
1006 |
msgstr ""
|
1007 |
|
1008 |
+
#: public/wishlist/view.class.php:565
|
1009 |
msgid "Previous Page"
|
1010 |
msgstr ""
|
1011 |
|
1012 |
+
#: public/wishlist/view.class.php:574
|
1013 |
msgid "Next Page"
|
1014 |
msgstr ""
|
1015 |
|
public/wishlist/view.class.php
CHANGED
@@ -35,7 +35,7 @@ class TInvWL_Public_Wishlist_View {
|
|
35 |
*
|
36 |
* @var array
|
37 |
*/
|
38 |
-
private $
|
39 |
/**
|
40 |
* This class
|
41 |
*
|
@@ -104,13 +104,23 @@ class TInvWL_Public_Wishlist_View {
|
|
104 |
*
|
105 |
* @param string $text Text for button add to cart.
|
106 |
* @param array $wl_product Wishlist Product.
|
107 |
-
* @param
|
108 |
*
|
109 |
* @return string
|
110 |
*/
|
111 |
-
function external_text( $text, $wl_product, $
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
if ( 'external' === ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $product->product_type : $product->get_type() ) ) {
|
113 |
-
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
|
116 |
return $text;
|
@@ -121,14 +131,23 @@ class TInvWL_Public_Wishlist_View {
|
|
121 |
*
|
122 |
* @param string $text Text for button add to cart.
|
123 |
* @param array $wl_product Wishlist Product.
|
124 |
-
* @param
|
125 |
*
|
126 |
* @return string
|
127 |
*/
|
128 |
-
function variable_text( $text, $wl_product, $
|
|
|
|
|
|
|
|
|
|
|
129 |
if ( apply_filters( 'tinvwl_product_add_to_cart_need_redirect', false, $product, $product->get_permalink(), $wl_product )
|
130 |
&& 'variable' === ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $product->product_type : $product->get_type() ) ) {
|
131 |
-
|
|
|
|
|
|
|
|
|
132 |
}
|
133 |
|
134 |
return $text;
|
@@ -140,11 +159,11 @@ class TInvWL_Public_Wishlist_View {
|
|
140 |
* @return array
|
141 |
*/
|
142 |
function get_current_wishlist() {
|
143 |
-
if ( empty( $this->
|
144 |
-
$this->
|
145 |
}
|
146 |
|
147 |
-
return $this->
|
148 |
}
|
149 |
|
150 |
/**
|
@@ -204,7 +223,7 @@ class TInvWL_Public_Wishlist_View {
|
|
204 |
*
|
205 |
* @param boolean $allow Settings flag.
|
206 |
* @param array $wlproduct Wishlist Product.
|
207 |
-
* @param
|
208 |
*
|
209 |
* @return boolean
|
210 |
*/
|
35 |
*
|
36 |
* @var array
|
37 |
*/
|
38 |
+
private $current_wishlist;
|
39 |
/**
|
40 |
* This class
|
41 |
*
|
104 |
*
|
105 |
* @param string $text Text for button add to cart.
|
106 |
* @param array $wl_product Wishlist Product.
|
107 |
+
* @param WC_Product $_product Product.
|
108 |
*
|
109 |
* @return string
|
110 |
*/
|
111 |
+
function external_text( $text, $wl_product, $_product ) {
|
112 |
+
global $product;
|
113 |
+
// store global product data.
|
114 |
+
$_product_tmp = $product;
|
115 |
+
// override global product data.
|
116 |
+
$product = $_product;
|
117 |
+
|
118 |
if ( 'external' === ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $product->product_type : $product->get_type() ) ) {
|
119 |
+
|
120 |
+
$text = $product->single_add_to_cart_text();
|
121 |
+
|
122 |
+
// restore global product data.
|
123 |
+
$product = $_product_tmp;
|
124 |
}
|
125 |
|
126 |
return $text;
|
131 |
*
|
132 |
* @param string $text Text for button add to cart.
|
133 |
* @param array $wl_product Wishlist Product.
|
134 |
+
* @param WC_Product $_product Product.
|
135 |
*
|
136 |
* @return string
|
137 |
*/
|
138 |
+
function variable_text( $text, $wl_product, $_product ) {
|
139 |
+
global $product;
|
140 |
+
// store global product data.
|
141 |
+
$_product_tmp = $product;
|
142 |
+
// override global product data.
|
143 |
+
$product = $_product;
|
144 |
if ( apply_filters( 'tinvwl_product_add_to_cart_need_redirect', false, $product, $product->get_permalink(), $wl_product )
|
145 |
&& 'variable' === ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $product->product_type : $product->get_type() ) ) {
|
146 |
+
|
147 |
+
$text = $product->add_to_cart_text();
|
148 |
+
|
149 |
+
// restore global product data.
|
150 |
+
$product = $_product_tmp;
|
151 |
}
|
152 |
|
153 |
return $text;
|
159 |
* @return array
|
160 |
*/
|
161 |
function get_current_wishlist() {
|
162 |
+
if ( empty( $this->current_wishlist ) ) {
|
163 |
+
$this->current_wishlist = apply_filters( 'tinvwl_get_current_wishlist', tinv_wishlist_get() );
|
164 |
}
|
165 |
|
166 |
+
return $this->current_wishlist;
|
167 |
}
|
168 |
|
169 |
/**
|
223 |
*
|
224 |
* @param boolean $allow Settings flag.
|
225 |
* @param array $wlproduct Wishlist Product.
|
226 |
+
* @param WC_Product $product Product.
|
227 |
*
|
228 |
* @return boolean
|
229 |
*/
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://templateinvaders.com/?utm_source=wordpressorg&utm_content=d
|
|
4 |
Tags: wishlist, woocommerce, woocommerce wishlist, e-commerce, ecommerce
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -130,7 +130,11 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
|
|
130 |
|
131 |
|
132 |
== Changelog ==
|
133 |
-
= 1.8.
|
|
|
|
|
|
|
|
|
134 |
*Release Date - 25 August 2018*
|
135 |
* Fixed database fields type issue
|
136 |
|
4 |
Tags: wishlist, woocommerce, woocommerce wishlist, e-commerce, ecommerce
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 1.8.14
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
130 |
|
131 |
|
132 |
== Changelog ==
|
133 |
+
= 1.8.14 =
|
134 |
+
*Release Date - 29 August 2018*
|
135 |
+
* Fixed fatal errors when 3rd party code using global product object outside a loop
|
136 |
+
|
137 |
+
= 1.8.13 =
|
138 |
*Release Date - 25 August 2018*
|
139 |
* Fixed database fields type issue
|
140 |
|
ti-woocommerce-wishlist.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: WooCommerce Wishlist Plugin
|
5 |
* Plugin URI: https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
6 |
* Description: Wishlist functionality for your WooCommerce store.
|
7 |
-
* Version: 1.8.
|
8 |
* Requires at least: 4.5
|
9 |
* Tested up to: 4.9
|
10 |
* WC requires at least: 2.6
|
@@ -41,7 +41,7 @@ if ( ! defined( 'TINVWL_DOMAIN' ) ) {
|
|
41 |
}
|
42 |
|
43 |
if ( ! defined( 'TINVWL_FVERSION' ) ) {
|
44 |
-
define( 'TINVWL_FVERSION', '1.8.
|
45 |
}
|
46 |
|
47 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|
4 |
* Plugin Name: WooCommerce Wishlist Plugin
|
5 |
* Plugin URI: https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
6 |
* Description: Wishlist functionality for your WooCommerce store.
|
7 |
+
* Version: 1.8.14
|
8 |
* Requires at least: 4.5
|
9 |
* Tested up to: 4.9
|
10 |
* WC requires at least: 2.6
|
41 |
}
|
42 |
|
43 |
if ( ! defined( 'TINVWL_FVERSION' ) ) {
|
44 |
+
define( 'TINVWL_FVERSION', '1.8.14' );
|
45 |
}
|
46 |
|
47 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|