Version Description
Release Date - 16 August 2018 * Fixed PHP fatal error on plugin activation
Download this release
Release Info
Developer | templateinvaders |
Plugin | WooCommerce Wishlist Plugin |
Version | 1.8.12 |
Comparing to | |
See all releases |
Code changes from version 1.8.11 to 1.8.12
- 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 +2 -2
- readme.txt +6 -2
- ti-woocommerce-wishlist.php +117 -2
- tinv-wishlists-function.php +0 -113
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.12
|
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.12
|
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.12
|
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.12
|
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.12
|
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.12
|
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.12
|
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"
|
2 |
# This file is distributed under the GPL-2.0+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce Wishlist Plugin 1.8.12\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/ti-woocommerce-wishlist\n"
|
8 |
+
"POT-Creation-Date: 2018-08-16 05:37:47+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
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,12 +130,16 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
|
|
130 |
|
131 |
|
132 |
== Changelog ==
|
|
|
|
|
|
|
|
|
133 |
= 1.8.11 =
|
134 |
*Release Date - 15 August 2018*
|
135 |
|
136 |
* Fixed pluggable function load order
|
137 |
* Added icon animation on wishlist events loading
|
138 |
-
* Improved product counter
|
139 |
|
140 |
= 1.8.10 =
|
141 |
*Release Date - 13 August 2018*
|
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.12
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
130 |
|
131 |
|
132 |
== Changelog ==
|
133 |
+
= 1.8.12 =
|
134 |
+
*Release Date - 16 August 2018*
|
135 |
+
* Fixed PHP fatal error on plugin activation
|
136 |
+
|
137 |
= 1.8.11 =
|
138 |
*Release Date - 15 August 2018*
|
139 |
|
140 |
* Fixed pluggable function load order
|
141 |
* Added icon animation on wishlist events loading
|
142 |
+
* Improved product counter synchronization between browser windows
|
143 |
|
144 |
= 1.8.10 =
|
145 |
*Release Date - 13 August 2018*
|
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,14 +41,86 @@ 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' ) ) {
|
48 |
define( 'TINVWL_LOAD_FREE', plugin_basename( __FILE__ ) );
|
49 |
}
|
50 |
|
|
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
if ( ! function_exists( 'activation_tinv_wishlist' ) ) {
|
54 |
|
@@ -87,6 +159,49 @@ if ( ! function_exists( 'uninstall_tinv_wishlist' ) ) {
|
|
87 |
}
|
88 |
}
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
if ( ! function_exists( 'dependency_tinv_wishlist' ) ) {
|
91 |
|
92 |
/**
|
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.12
|
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.12' );
|
45 |
}
|
46 |
|
47 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|
48 |
define( 'TINVWL_LOAD_FREE', plugin_basename( __FILE__ ) );
|
49 |
}
|
50 |
|
51 |
+
if ( ! function_exists( 'tinv_array_merge' ) ) {
|
52 |
|
53 |
+
/**
|
54 |
+
* Function to merge arrays with replacement options
|
55 |
+
*
|
56 |
+
* @param array $array1 Array.
|
57 |
+
* @param array $_ Array.
|
58 |
+
*
|
59 |
+
* @return array
|
60 |
+
*/
|
61 |
+
function tinv_array_merge( $array1, $_ = null ) {
|
62 |
+
if ( ! is_array( $array1 ) ) {
|
63 |
+
return $array1;
|
64 |
+
}
|
65 |
+
$args = func_get_args();
|
66 |
+
array_shift( $args );
|
67 |
+
foreach ( $args as $array2 ) {
|
68 |
+
if ( is_array( $array2 ) ) {
|
69 |
+
foreach ( $array2 as $key => $value ) {
|
70 |
+
$array1[ $key ] = $value;
|
71 |
+
}
|
72 |
+
}
|
73 |
+
}
|
74 |
+
|
75 |
+
return $array1;
|
76 |
+
}
|
77 |
+
}
|
78 |
+
|
79 |
+
|
80 |
+
if ( ! function_exists( 'tinv_get_option_defaults' ) ) {
|
81 |
+
|
82 |
+
/**
|
83 |
+
* Extract default options from settings class
|
84 |
+
*
|
85 |
+
* @param string $category Name category settings.
|
86 |
+
*
|
87 |
+
* @return array
|
88 |
+
*/
|
89 |
+
function tinv_get_option_defaults( $category ) {
|
90 |
+
$dir = TINVWL_PATH . 'admin/settings/';
|
91 |
+
if ( ! file_exists( $dir ) || ! is_dir( $dir ) ) {
|
92 |
+
return array();
|
93 |
+
}
|
94 |
+
$files = scandir( $dir );
|
95 |
+
foreach ( $files as $key => $value ) {
|
96 |
+
if ( preg_match( '/\.class\.php$/i', $value ) ) {
|
97 |
+
$files[ $key ] = preg_replace( '/\.class\.php$/i', '', $value );
|
98 |
+
} else {
|
99 |
+
unset( $files[ $key ] );
|
100 |
+
}
|
101 |
+
}
|
102 |
+
$defaults = array();
|
103 |
+
foreach ( $files as $file ) {
|
104 |
+
$class = 'TInvWL_Admin_Settings_' . ucfirst( $file );
|
105 |
+
$class = new $class( '', '' );
|
106 |
+
$class_methods = get_class_methods( $class );
|
107 |
+
foreach ( $class_methods as $method ) {
|
108 |
+
if ( preg_match( '/_data$/i', $method ) ) {
|
109 |
+
$settings = $class->get_defaults( $class->$method() );
|
110 |
+
$defaults = tinv_array_merge( $defaults, $settings );
|
111 |
+
}
|
112 |
+
}
|
113 |
+
}
|
114 |
+
if ( 'all' === $category ) {
|
115 |
+
return $defaults;
|
116 |
+
}
|
117 |
+
if ( array_key_exists( $category, $defaults ) ) {
|
118 |
+
return $defaults[ $category ];
|
119 |
+
}
|
120 |
+
|
121 |
+
return array();
|
122 |
+
}
|
123 |
+
} // End if().
|
124 |
|
125 |
if ( ! function_exists( 'activation_tinv_wishlist' ) ) {
|
126 |
|
159 |
}
|
160 |
}
|
161 |
|
162 |
+
if ( function_exists( 'spl_autoload_register' ) && ! function_exists( 'autoload_tinv_wishlist' ) ) {
|
163 |
+
|
164 |
+
/**
|
165 |
+
* Autoloader class. If no function spl_autoload_register, then all the files will be required
|
166 |
+
*
|
167 |
+
* @param string $_class Required class name.
|
168 |
+
*
|
169 |
+
* @return boolean
|
170 |
+
*/
|
171 |
+
function autoload_tinv_wishlist( $_class ) {
|
172 |
+
$preffix = 'TInvWL';
|
173 |
+
$ext = '.php';
|
174 |
+
$class = explode( '_', $_class );
|
175 |
+
$object = array_shift( $class );
|
176 |
+
if ( $preffix !== $object ) {
|
177 |
+
return false;
|
178 |
+
}
|
179 |
+
if ( empty( $class ) ) {
|
180 |
+
$class = array( $preffix );
|
181 |
+
}
|
182 |
+
$basicclass = $class;
|
183 |
+
array_unshift( $class, 'includes' );
|
184 |
+
$classs = array(
|
185 |
+
TINVWL_PATH . strtolower( implode( DIRECTORY_SEPARATOR, $basicclass ) ),
|
186 |
+
TINVWL_PATH . strtolower( implode( DIRECTORY_SEPARATOR, $class ) ),
|
187 |
+
);
|
188 |
+
foreach ( $classs as $class ) {
|
189 |
+
foreach ( array( '.class', '.helper' ) as $suffix ) {
|
190 |
+
$filename = $class . $suffix . $ext;
|
191 |
+
if ( file_exists( $filename ) ) {
|
192 |
+
require_once $filename;
|
193 |
+
|
194 |
+
return true;
|
195 |
+
}
|
196 |
+
}
|
197 |
+
}
|
198 |
+
|
199 |
+
return false;
|
200 |
+
}
|
201 |
+
|
202 |
+
spl_autoload_register( 'autoload_tinv_wishlist' );
|
203 |
+
} // End if().
|
204 |
+
|
205 |
if ( ! function_exists( 'dependency_tinv_wishlist' ) ) {
|
206 |
|
207 |
/**
|
tinv-wishlists-function.php
CHANGED
@@ -11,121 +11,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
11 |
die;
|
12 |
}
|
13 |
|
14 |
-
if ( function_exists( 'spl_autoload_register' ) ) {
|
15 |
|
16 |
-
/**
|
17 |
-
* Autoloader class. If no function spl_autoload_register, then all the files will be required
|
18 |
-
*
|
19 |
-
* @param string $_class Required class name.
|
20 |
-
*
|
21 |
-
* @return boolean
|
22 |
-
*/
|
23 |
-
function autoload_tinv_wishlist( $_class ) {
|
24 |
-
$preffix = 'TInvWL';
|
25 |
-
$ext = '.php';
|
26 |
-
$class = explode( '_', $_class );
|
27 |
-
$object = array_shift( $class );
|
28 |
-
if ( $preffix !== $object ) {
|
29 |
-
return false;
|
30 |
-
}
|
31 |
-
if ( empty( $class ) ) {
|
32 |
-
$class = array( $preffix );
|
33 |
-
}
|
34 |
-
$basicclass = $class;
|
35 |
-
array_unshift( $class, 'includes' );
|
36 |
-
$classs = array(
|
37 |
-
TINVWL_PATH . strtolower( implode( DIRECTORY_SEPARATOR, $basicclass ) ),
|
38 |
-
TINVWL_PATH . strtolower( implode( DIRECTORY_SEPARATOR, $class ) ),
|
39 |
-
);
|
40 |
-
foreach ( $classs as $class ) {
|
41 |
-
foreach ( array( '.class', '.helper' ) as $suffix ) {
|
42 |
-
$filename = $class . $suffix . $ext;
|
43 |
-
if ( file_exists( $filename ) ) {
|
44 |
-
require_once $filename;
|
45 |
-
|
46 |
-
return true;
|
47 |
-
}
|
48 |
-
}
|
49 |
-
}
|
50 |
-
|
51 |
-
return false;
|
52 |
-
}
|
53 |
-
|
54 |
-
spl_autoload_register( 'autoload_tinv_wishlist' );
|
55 |
-
} // End if().
|
56 |
-
|
57 |
-
if ( ! function_exists( 'tinv_array_merge' ) ) {
|
58 |
-
|
59 |
-
/**
|
60 |
-
* Function to merge arrays with replacement options
|
61 |
-
*
|
62 |
-
* @param array $array1 Array.
|
63 |
-
* @param array $_ Array.
|
64 |
-
*
|
65 |
-
* @return array
|
66 |
-
*/
|
67 |
-
function tinv_array_merge( $array1, $_ = null ) {
|
68 |
-
if ( ! is_array( $array1 ) ) {
|
69 |
-
return $array1;
|
70 |
-
}
|
71 |
-
$args = func_get_args();
|
72 |
-
array_shift( $args );
|
73 |
-
foreach ( $args as $array2 ) {
|
74 |
-
if ( is_array( $array2 ) ) {
|
75 |
-
foreach ( $array2 as $key => $value ) {
|
76 |
-
$array1[ $key ] = $value;
|
77 |
-
}
|
78 |
-
}
|
79 |
-
}
|
80 |
-
|
81 |
-
return $array1;
|
82 |
-
}
|
83 |
-
}
|
84 |
-
|
85 |
-
if ( ! function_exists( 'tinv_get_option_defaults' ) ) {
|
86 |
-
|
87 |
-
/**
|
88 |
-
* Extract default options from settings class
|
89 |
-
*
|
90 |
-
* @param string $category Name category settings.
|
91 |
-
*
|
92 |
-
* @return array
|
93 |
-
*/
|
94 |
-
function tinv_get_option_defaults( $category ) {
|
95 |
-
$dir = TINVWL_PATH . 'admin/settings/';
|
96 |
-
if ( ! file_exists( $dir ) || ! is_dir( $dir ) ) {
|
97 |
-
return array();
|
98 |
-
}
|
99 |
-
$files = scandir( $dir );
|
100 |
-
foreach ( $files as $key => $value ) {
|
101 |
-
if ( preg_match( '/\.class\.php$/i', $value ) ) {
|
102 |
-
$files[ $key ] = preg_replace( '/\.class\.php$/i', '', $value );
|
103 |
-
} else {
|
104 |
-
unset( $files[ $key ] );
|
105 |
-
}
|
106 |
-
}
|
107 |
-
$defaults = array();
|
108 |
-
foreach ( $files as $file ) {
|
109 |
-
$class = 'TInvWL_Admin_Settings_' . ucfirst( $file );
|
110 |
-
$class = new $class( '', '' );
|
111 |
-
$class_methods = get_class_methods( $class );
|
112 |
-
foreach ( $class_methods as $method ) {
|
113 |
-
if ( preg_match( '/_data$/i', $method ) ) {
|
114 |
-
$settings = $class->get_defaults( $class->$method() );
|
115 |
-
$defaults = tinv_array_merge( $defaults, $settings );
|
116 |
-
}
|
117 |
-
}
|
118 |
-
}
|
119 |
-
if ( 'all' === $category ) {
|
120 |
-
return $defaults;
|
121 |
-
}
|
122 |
-
if ( array_key_exists( $category, $defaults ) ) {
|
123 |
-
return $defaults[ $category ];
|
124 |
-
}
|
125 |
|
126 |
-
return array();
|
127 |
-
}
|
128 |
-
} // End if().
|
129 |
|
130 |
if ( ! function_exists( 'tinv_get_option' ) ) {
|
131 |
|
11 |
die;
|
12 |
}
|
13 |
|
|
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
|
|
|
|
|
|
16 |
|
17 |
if ( ! function_exists( 'tinv_get_option' ) ) {
|
18 |
|