YITH WooCommerce Compare - Version 2.3.7

Version Description

Released on Dec 05, 2018

  • New: Support to WooCommerce 3.5.2.
  • New: Support to WordPress 5.0.0.
  • Update: Plugin Core.
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Compare
Version 2.3.7
Comparing to
See all releases

Code changes from version 2.3.6 to 2.3.7

README.txt CHANGED
@@ -3,8 +3,8 @@
3
Contributors: yithemes
4
Tags: yith, woocommerce compare, compare products, product compare, product comparison
5
Requires at least: 3.5.1
6
- Tested up to: 4.9
7
- Stable tag: 2.3.6
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -66,6 +66,12 @@ yith-woocommerce-compare-<WORDPRESS LOCALE >.mo
66
67
== Changelog ==
68
69
= 2.3.6 = Released on Nov 28, 2018
70
71
* Update: Plugin Core.
@@ -313,8 +319,8 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
313
314
== Upgrade notice ==
315
316
- = 2.3.6 = Released on Nov 28, 2018
317
318
- * Update: Plugin Core.
319
- * Update: Language files.
320
- * Fix: Missing strings in pot and po files.
3
Contributors: yithemes
4
Tags: yith, woocommerce compare, compare products, product compare, product comparison
5
Requires at least: 3.5.1
6
+ Tested up to: 5.0
7
+ Stable tag: 2.3.7
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
66
67
== Changelog ==
68
69
+ = 2.3.7 = Released on Dec 05, 2018
70
+
71
+ * New: Support to WooCommerce 3.5.2.
72
+ * New: Support to WordPress 5.0.0.
73
+ * Update: Plugin Core.
74
+
75
= 2.3.6 = Released on Nov 28, 2018
76
77
* Update: Plugin Core.
319
320
== Upgrade notice ==
321
322
+ = 2.3.7 = Released on Dec 05, 2018
323
324
+ * New: Support to WooCommerce 3.5.2.
325
+ * New: Support to WordPress 5.0.0.
326
+ * Update: Plugin Core.
init.php CHANGED
@@ -3,7 +3,7 @@
3
* Plugin Name: YITH WooCommerce Compare
4
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-compare/
5
* Description: The <code><strong>YITH WooCommerce Compare</strong></code> plugin allow you to compare in a simple and efficient way products on sale in your shop and analyze their main features in a single table. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
6
- * Version: 2.3.6
7
* Author: YITH
8
* Author URI: https://yithemes.com/
9
* Text Domain: yith-woocommerce-compare
@@ -13,7 +13,7 @@
13
*
14
* @author YITH
15
* @package YITH WooCommerce Compare
16
- * @version 2.3.6
17
*/
18
/* Copyright 2015 Your Inspiration Themes (email : plugins@yithemes.com)
19
@@ -58,7 +58,7 @@ if ( ! function_exists( 'yith_plugin_registration_hook' ) ) {
58
register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
59
60
if ( ! defined( 'YITH_WOOCOMPARE_VERSION' ) ){
61
- define( 'YITH_WOOCOMPARE_VERSION', '2.3.6' );
62
}
63
if ( ! defined( 'YITH_WOOCOMPARE_FREE_INIT' ) ) {
64
define( 'YITH_WOOCOMPARE_FREE_INIT', plugin_basename( __FILE__ ) );
3
* Plugin Name: YITH WooCommerce Compare
4
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-compare/
5
* Description: The <code><strong>YITH WooCommerce Compare</strong></code> plugin allow you to compare in a simple and efficient way products on sale in your shop and analyze their main features in a single table. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
6
+ * Version: 2.3.7
7
* Author: YITH
8
* Author URI: https://yithemes.com/
9
* Text Domain: yith-woocommerce-compare
13
*
14
* @author YITH
15
* @package YITH WooCommerce Compare
16
+ * @version 2.3.7
17
*/
18
/* Copyright 2015 Your Inspiration Themes (email : plugins@yithemes.com)
19
58
register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
59
60
if ( ! defined( 'YITH_WOOCOMPARE_VERSION' ) ){
61
+ define( 'YITH_WOOCOMPARE_VERSION', '2.3.7' );
62
}
63
if ( ! defined( 'YITH_WOOCOMPARE_FREE_INIT' ) ) {
64
define( 'YITH_WOOCOMPARE_FREE_INIT', plugin_basename( __FILE__ ) );
plugin-fw/init.php CHANGED
@@ -1,13 +1,13 @@
1
<?php
2
/**
3
* Framework Name: YIT Plugin Framework
4
- * Version: 3.1.3
5
* Author: YITHEMES
6
* Text Domain: yith-plugin-fw
7
* Domain Path: /languages/
8
*
9
* @author Your Inspiration Themes
10
- * @version 3.1.3
11
*/
12
/**
13
* This file belongs to the YIT Plugin Framework.
1
<?php
2
/**
3
* Framework Name: YIT Plugin Framework
4
+ * Version: 3.1.5
5
* Author: YITHEMES
6
* Text Domain: yith-plugin-fw
7
* Domain Path: /languages/
8
*
9
* @author Your Inspiration Themes
10
+ * @version 3.1.5
11
*/
12
/**
13
* This file belongs to the YIT Plugin Framework.
plugin-fw/lib/promo/yith-promo.php CHANGED
@@ -17,7 +17,7 @@ add_action( 'admin_enqueue_scripts', 'yith_plugin_fw_notice_dismiss', 20 );
17
18
if( ! function_exists( 'yith_plugin_fw_promo_notices' ) ){
19
function yith_plugin_fw_promo_notices(){
20
- $base_url = apply_filters( 'yith_plugin_fw_promo_base_url', 'https://update.yithemes.com/promo/' );;
21
$xml = apply_filters( 'yith_plugin_fw_promo_xml_url', $base_url . 'yith-promo.xml' );
22
$transient = "yith_promo_message";
23
$remote_data = get_site_transient( $transient );
17
18
if( ! function_exists( 'yith_plugin_fw_promo_notices' ) ){
19
function yith_plugin_fw_promo_notices(){
20
+ $base_url = apply_filters( 'yith_plugin_fw_promo_base_url', 'https://update.yithemes.com/promo/hotlink-ok' );
21
$xml = apply_filters( 'yith_plugin_fw_promo_xml_url', $base_url . 'yith-promo.xml' );
22
$transient = "yith_promo_message";
23
$remote_data = get_site_transient( $transient );
plugin-fw/lib/yit-plugin-panel-wc.php CHANGED
@@ -325,7 +325,7 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
325
do_action( 'yit_panel_wc_after_update' );
326
327
} elseif ( isset( $_REQUEST[ 'yit-action' ] ) && $_REQUEST[ 'yit-action' ] == 'wc-options-reset'
328
- && isset( $_POST[ 'yith_wc_reset_options_nonce' ] ) && wp_verify_nonce( $_POST[ 'yith_wc_reset_options_nonce' ], 'yith_wc_reset_options_' . $this->settings[ 'page' ] )
329
) {
330
331
do_action( 'yit_panel_wc_before_reset' );
@@ -551,7 +551,12 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
551
$field[ 'id' ] = isset( $field[ 'id' ] ) ? $field[ 'id' ] : '';
552
$field[ 'name' ] = $field[ 'id' ];
553
$field[ 'default' ] = isset( $field[ 'default' ] ) ? $field[ 'default' ] : '';
554
- $field[ 'value' ] = WC_Admin_Settings::get_option( $field[ 'id' ], $field[ 'default' ] );
555
556
require( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-option-row.php' );
557
}
325
do_action( 'yit_panel_wc_after_update' );
326
327
} elseif ( isset( $_REQUEST[ 'yit-action' ] ) && $_REQUEST[ 'yit-action' ] == 'wc-options-reset'
328
+ && isset( $_POST[ 'yith_wc_reset_options_nonce' ] ) && wp_verify_nonce( $_POST[ 'yith_wc_reset_options_nonce' ], 'yith_wc_reset_options_' . $this->settings[ 'page' ] )
329
) {
330
331
do_action( 'yit_panel_wc_before_reset' );
551
$field[ 'id' ] = isset( $field[ 'id' ] ) ? $field[ 'id' ] : '';
552
$field[ 'name' ] = $field[ 'id' ];
553
$field[ 'default' ] = isset( $field[ 'default' ] ) ? $field[ 'default' ] : '';
554
+
555
+ $value = apply_filters( 'yith_plugin_fw_wc_panel_pre_field_value', null, $field );
556
+ if ( is_null( $value ) ) {
557
+ $value = WC_Admin_Settings::get_option( $field[ 'id' ], $field[ 'default' ] );
558
+ }
559
+ $field[ 'value' ] = $value;
560
561
require( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-option-row.php' );
562
}
plugin-fw/lib/yit-plugin-panel.php CHANGED
@@ -337,6 +337,13 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
337
'//support.yithemes.com/hc/en-us/articles/217840988',
338
__( 'How to install premium version', 'yith-plugin-fw' ),
339
);
340
}
341
}
342
337
'//support.yithemes.com/hc/en-us/articles/217840988',
338
__( 'How to install premium version', 'yith-plugin-fw' ),
339
);
340
+
341
+ $submenu[ 'yith_plugin_panel' ][ 'frequently_license_issues' ] = array(
342
+ sprintf( '%s%s%s', '<span id="yith-license-issues-premium">', __( 'Frequently license issues', 'yith-plugin-fw' ), '</span>' ),
343
+ 'install_plugins',
344
+ '//support.yithemes.com/hc/en-us/articles/360012568594-License-activation-issues',
345
+ __( 'Frequently license issues', 'yith-plugin-fw' ),
346
+ );
347
}
348
}
349
plugin-fw/licence/lib/yit-licence.php CHANGED
@@ -360,6 +360,7 @@ if ( !class_exists( 'YIT_Licence' ) ) {
360
361
case '101':
362
case '102':
363
unset( $options[ $product[ 'product_id' ] ] );
364
break;
365
@@ -468,6 +469,7 @@ if ( !class_exists( 'YIT_Licence' ) ) {
468
469
case '101':
470
case '102':
471
unset( $licence[ $product_id ] );
472
break;
473
360
361
case '101':
362
case '102':
363
+ case '104':
364
unset( $options[ $product[ 'product_id' ] ] );
365
break;
366
469
470
case '101':
471
case '102':
472
+ case '104':
473
unset( $licence[ $product_id ] );
474
break;
475