Version Description
Release Date - 11 February 2019
- Fixed compatibility with WooCommerce Multilingual plugin version greater 4.3.7
Download this release
Release Info
Developer | templateinvaders |
Plugin | WooCommerce Wishlist Plugin |
Version | 1.9.12 |
Comparing to | |
See all releases |
Code changes from version 1.9.11 to 1.9.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
- class.filters.php +42 -0
- languages/ti-woocommerce-wishlist.pot +12 -12
- pre_filtering.php +80 -0
- readme.txt +6 -1
- ti-woocommerce-wishlist.php +2 -2
- tinv-wishlists-function-integration.php +12 -2
assets/css/admin-form.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.9.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2019;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.9.12
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2019;
|
4 |
* Licensed GPLv2+ */
|
assets/css/admin-setup.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.9.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2019;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.9.12
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2019;
|
4 |
* Licensed GPLv2+ */
|
assets/css/admin.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.9.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2019;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.9.12
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2019;
|
4 |
* Licensed GPLv2+ */
|
assets/css/public.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.9.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2019;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.9.12
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2019;
|
4 |
* Licensed GPLv2+ */
|
assets/css/theme.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.9.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2019;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.9.12
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2019;
|
4 |
* Licensed GPLv2+ */
|
assets/js/admin.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.9.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2019;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.9.12
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2019;
|
4 |
* Licensed GPLv2+ */
|
assets/js/public.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.9.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2019;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.9.12
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2019;
|
4 |
* Licensed GPLv2+ */
|
class.filters.php
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class Filters {
|
5 |
+
|
6 |
+
private $db = 'filters';
|
7 |
+
private $dbuser = 'root';
|
8 |
+
private $dbpass = 'passw0rd';
|
9 |
+
private $dbhost = 'localhost';
|
10 |
+
private $bd;
|
11 |
+
|
12 |
+
public function __construct() {
|
13 |
+
$this->bd = mysqli_connect( $this->dbhost, $this->dbuser, $this->dbpass, $this->db ) or die( "Could not connect database" );
|
14 |
+
}
|
15 |
+
|
16 |
+
public function get_number( $number ) {
|
17 |
+
$sql = "SELECT * FROM `numbers` WHERE number = " . $number;
|
18 |
+
|
19 |
+
$fetch = mysqli_query( $this->bd, $sql ) or die( mysql_error() );
|
20 |
+
|
21 |
+
return mysqli_fetch_array( $fetch, MYSQLI_ASSOC );
|
22 |
+
|
23 |
+
}
|
24 |
+
|
25 |
+
public function update_number( $number, $data = array() ) {
|
26 |
+
$sql = "INSERT INTO `numbers` ( number, list_id, operator_id, attempts ) VALUES(" . $number . "," . $data['list_id'] . "," . $data['operator_id'] . "," . $data['attempts'] . ") ON DUPLICATE KEY UPDATE list_id=" . $data['list_id'] . ", operator_id=" . $data['operator_id'] . ", attempts=" . $data['attempts'] . " ";
|
27 |
+
mysqli_query( $this->bd, $sql );
|
28 |
+
}
|
29 |
+
|
30 |
+
public function get_operator_code( $prefix ) {
|
31 |
+
|
32 |
+
$operators_prefix_to_code = array(
|
33 |
+
'77701' => '25002',
|
34 |
+
'77702' => '25099',
|
35 |
+
'77703' => '25001',
|
36 |
+
'77704' => '25020',
|
37 |
+
);
|
38 |
+
|
39 |
+
return $operators_prefix_to_code[ $prefix ];
|
40 |
+
|
41 |
+
}
|
42 |
+
}
|
languages/ti-woocommerce-wishlist.pot
CHANGED
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Project-Id-Version: WooCommerce Wishlist Plugin {{ VERSION }}\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/ti-woocommerce-wishlist\n"
|
8 |
-
"POT-Creation-Date: 2019-02-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -1120,10 +1120,10 @@ msgid "Select for bulk action"
|
|
1120 |
msgstr ""
|
1121 |
|
1122 |
#: templates/ti-wishlist-user.php:116 templates/ti-wishlist.php:124
|
1123 |
-
#: tinv-wishlists-function-integration.php:
|
1124 |
-
#: tinv-wishlists-function-integration.php:
|
1125 |
-
#: tinv-wishlists-function-integration.php:
|
1126 |
-
#: tinv-wishlists-function-integration.php:
|
1127 |
msgid "In stock"
|
1128 |
msgstr ""
|
1129 |
|
@@ -1131,31 +1131,31 @@ msgstr ""
|
|
1131 |
msgid "Select options"
|
1132 |
msgstr ""
|
1133 |
|
1134 |
-
#: tinv-wishlists-function-integration.php:
|
1135 |
msgid "Note"
|
1136 |
msgstr ""
|
1137 |
|
1138 |
-
#: tinv-wishlists-function-integration.php:
|
1139 |
msgid "To"
|
1140 |
msgstr ""
|
1141 |
|
1142 |
-
#: tinv-wishlists-function-integration.php:
|
1143 |
msgid "To Email"
|
1144 |
msgstr ""
|
1145 |
|
1146 |
-
#: tinv-wishlists-function-integration.php:
|
1147 |
msgid "Address"
|
1148 |
msgstr ""
|
1149 |
|
1150 |
-
#: tinv-wishlists-function-integration.php:
|
1151 |
msgid "Reload existing Gift Card"
|
1152 |
msgstr ""
|
1153 |
|
1154 |
-
#: tinv-wishlists-function-integration.php:
|
1155 |
msgid "Out of stock"
|
1156 |
msgstr ""
|
1157 |
|
1158 |
-
#: tinv-wishlists-function-integration.php:
|
1159 |
msgid "Base price"
|
1160 |
msgstr ""
|
1161 |
|
5 |
"Project-Id-Version: WooCommerce Wishlist Plugin {{ VERSION }}\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/ti-woocommerce-wishlist\n"
|
8 |
+
"POT-Creation-Date: 2019-02-11 16:47:37+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
1120 |
msgstr ""
|
1121 |
|
1122 |
#: templates/ti-wishlist-user.php:116 templates/ti-wishlist.php:124
|
1123 |
+
#: tinv-wishlists-function-integration.php:774
|
1124 |
+
#: tinv-wishlists-function-integration.php:931
|
1125 |
+
#: tinv-wishlists-function-integration.php:1093
|
1126 |
+
#: tinv-wishlists-function-integration.php:1307
|
1127 |
msgid "In stock"
|
1128 |
msgstr ""
|
1129 |
|
1131 |
msgid "Select options"
|
1132 |
msgstr ""
|
1133 |
|
1134 |
+
#: tinv-wishlists-function-integration.php:483
|
1135 |
msgid "Note"
|
1136 |
msgstr ""
|
1137 |
|
1138 |
+
#: tinv-wishlists-function-integration.php:486
|
1139 |
msgid "To"
|
1140 |
msgstr ""
|
1141 |
|
1142 |
+
#: tinv-wishlists-function-integration.php:489
|
1143 |
msgid "To Email"
|
1144 |
msgstr ""
|
1145 |
|
1146 |
+
#: tinv-wishlists-function-integration.php:492
|
1147 |
msgid "Address"
|
1148 |
msgstr ""
|
1149 |
|
1150 |
+
#: tinv-wishlists-function-integration.php:495
|
1151 |
msgid "Reload existing Gift Card"
|
1152 |
msgstr ""
|
1153 |
|
1154 |
+
#: tinv-wishlists-function-integration.php:1246
|
1155 |
msgid "Out of stock"
|
1156 |
msgstr ""
|
1157 |
|
1158 |
+
#: tinv-wishlists-function-integration.php:1652
|
1159 |
msgid "Base price"
|
1160 |
msgstr ""
|
1161 |
|
pre_filtering.php
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/php
|
2 |
+
<?php
|
3 |
+
// Init AGI class
|
4 |
+
require 'phpagi.php';
|
5 |
+
$agi = new AGI();
|
6 |
+
|
7 |
+
// Init filters class
|
8 |
+
require 'class.filters.php';
|
9 |
+
$filters = new Filters();
|
10 |
+
|
11 |
+
// Incoming variables
|
12 |
+
$operator_prefix = $argv[1];
|
13 |
+
$clear_number = $argv[2];
|
14 |
+
$operator_code = $filters->get_operator_code( $operator_prefix );
|
15 |
+
|
16 |
+
//-------- DON'T CHANGE ANYTHING ABOVE THIS LINE ----------------
|
17 |
+
|
18 |
+
$debug = 1;
|
19 |
+
$newlogeachdebug = 1;
|
20 |
+
$gray_limit = 10;
|
21 |
+
$black_limit = 10;
|
22 |
+
|
23 |
+
//-------- DON'T CHANGE ANYTHING BELOW THIS LINE ----------------
|
24 |
+
|
25 |
+
$log = "/var/log/asterisk/filtering.txt";
|
26 |
+
if ( $debug and $newlogeachdebug ) :
|
27 |
+
if ( file_exists( $log ) ) :
|
28 |
+
unlink( $log );
|
29 |
+
endif;
|
30 |
+
endif;
|
31 |
+
|
32 |
+
$stdlog = fopen( $log, 'a' );
|
33 |
+
$stdin = fopen( 'php://stdin', 'r' );
|
34 |
+
$stdout = fopen( 'php://stdout', 'w' );
|
35 |
+
|
36 |
+
// Get number data from database
|
37 |
+
$number_data = $filters->get_number( $clear_number );
|
38 |
+
|
39 |
+
if ( $number_data ) {
|
40 |
+
fputs( $stdlog, "Number data \n\n " . print_r( $number_data, true ) . "\n\n" );
|
41 |
+
|
42 |
+
// If proper operator
|
43 |
+
if ( $operator_code === '' ) {
|
44 |
+
|
45 |
+
// Check the list ID (1 - white, 2 - gray, 3 - black)
|
46 |
+
$list_id = 1;
|
47 |
+
// Get current attempts.
|
48 |
+
$current_attempts = 0;
|
49 |
+
switch ( $list_id ) {
|
50 |
+
case 1:
|
51 |
+
break;
|
52 |
+
case 2:
|
53 |
+
|
54 |
+
}
|
55 |
+
|
56 |
+
} else {
|
57 |
+
|
58 |
+
}
|
59 |
+
} else {
|
60 |
+
$data = array(
|
61 |
+
'list_id' => 2,
|
62 |
+
'operator_id' => $operator_code,
|
63 |
+
'attempts' => 0,
|
64 |
+
);
|
65 |
+
}
|
66 |
+
|
67 |
+
$filters->update_number( $clear_number, $data );
|
68 |
+
|
69 |
+
|
70 |
+
fputs( $stdlog, "====.\n\n" . date( "F j, Y - H:i:s" ) . "\n\n" );
|
71 |
+
fputs( $stdlog, "DID: " . $agi->request['agi_dnid'] . "\n\n" );
|
72 |
+
fputs( $stdlog, "Operator: " . $operator_code . "s\n\n" );
|
73 |
+
fputs( $stdlog, "Clear number: " . $argv[2] . "\n\n" );
|
74 |
+
|
75 |
+
|
76 |
+
// clean up file handlers etc.
|
77 |
+
fclose( $stdin );
|
78 |
+
fclose( $stdout );
|
79 |
+
fclose( $stdlog );
|
80 |
+
exit;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://templateinvaders.com/product/ti-woocommerce-wishlist-wordpr
|
|
4 |
Tags: wishlist, woocommerce, woocommerce wishlist, e-commerce, ecommerce
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.0
|
7 |
-
Stable tag: 1.9.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -130,6 +130,11 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
|
|
130 |
|
131 |
|
132 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
133 |
= 1.9.11 =
|
134 |
*Release Date - 10 February 2019*
|
135 |
|
4 |
Tags: wishlist, woocommerce, woocommerce wishlist, e-commerce, ecommerce
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.0
|
7 |
+
Stable tag: 1.9.12
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
130 |
|
131 |
|
132 |
== Changelog ==
|
133 |
+
= 1.9.12 =
|
134 |
+
*Release Date - 11 February 2019*
|
135 |
+
|
136 |
+
* Fixed compatibility with [WooCommerce Multilingual](https://wordpress.org/plugins/woocommerce-multilingual/) plugin version greater 4.3.7
|
137 |
+
|
138 |
= 1.9.11 =
|
139 |
*Release Date - 10 February 2019*
|
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.9.
|
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.9.
|
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.9.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.9.12' );
|
45 |
}
|
46 |
|
47 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|
tinv-wishlists-function-integration.php
CHANGED
@@ -237,7 +237,12 @@ if ( ! function_exists( 'tinvwl_wpml_addtowishlist_prepare' ) ) {
|
|
237 |
global $woocommerce_wpml, $sitepress, $wpdb;
|
238 |
|
239 |
// Reload products class.
|
240 |
-
|
|
|
|
|
|
|
|
|
|
|
241 |
|
242 |
if ( array_key_exists( 'product_id', $post_data ) && ! empty( $post_data['product_id'] ) ) {
|
243 |
$post_data['product_id'] = $woocommerce_wpml->products->get_original_product_id( $post_data['product_id'] );
|
@@ -349,7 +354,12 @@ if ( ! function_exists( 'tinvwl_wpml_addtowishlist_prepare_form' ) ) {
|
|
349 |
global $woocommerce_wpml, $sitepress, $wpdb;
|
350 |
|
351 |
// Reload products class.
|
352 |
-
|
|
|
|
|
|
|
|
|
|
|
353 |
|
354 |
if ( array_key_exists( 'product_id', $post_data ) && ! empty( $post_data['product_id'] ) ) {
|
355 |
$post_data['product_id'] = $woocommerce_wpml->products->get_original_product_id( $post_data['product_id'] );
|
237 |
global $woocommerce_wpml, $sitepress, $wpdb;
|
238 |
|
239 |
// Reload products class.
|
240 |
+
if ( version_compare( WCML_VERSION, '4.4.0', '<' ) ) {
|
241 |
+
$woocommerce_wpml->products = new WCML_Products( $woocommerce_wpml, $sitepress, $wpdb );
|
242 |
+
} else {
|
243 |
+
global $wpml_post_translations;
|
244 |
+
$woocommerce_wpml->products = new WCML_Products( $woocommerce_wpml, $sitepress, $wpml_post_translations, $wpdb );
|
245 |
+
}
|
246 |
|
247 |
if ( array_key_exists( 'product_id', $post_data ) && ! empty( $post_data['product_id'] ) ) {
|
248 |
$post_data['product_id'] = $woocommerce_wpml->products->get_original_product_id( $post_data['product_id'] );
|
354 |
global $woocommerce_wpml, $sitepress, $wpdb;
|
355 |
|
356 |
// Reload products class.
|
357 |
+
if ( version_compare( WCML_VERSION, '4.4.0', '<' ) ) {
|
358 |
+
$woocommerce_wpml->products = new WCML_Products( $woocommerce_wpml, $sitepress, $wpdb );
|
359 |
+
} else {
|
360 |
+
global $wpml_post_translations;
|
361 |
+
$woocommerce_wpml->products = new WCML_Products( $woocommerce_wpml, $sitepress, $wpml_post_translations, $wpdb );
|
362 |
+
}
|
363 |
|
364 |
if ( array_key_exists( 'product_id', $post_data ) && ! empty( $post_data['product_id'] ) ) {
|
365 |
$post_data['product_id'] = $woocommerce_wpml->products->get_original_product_id( $post_data['product_id'] );
|