Version Description
Released on 17 January 2022
- New: support for WooCommerce 6.1
- New: support for WordPress 5.9
- Update: YITH plugin framework
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Compare |
Version | 2.10.0 |
Comparing to | |
See all releases |
Code changes from version 2.9.0 to 2.10.0
- includes/class.yith-woocompare-admin.php +2 -2
- init.php +5 -5
- languages/yith-woocommerce-compare.pot +4 -14
- plugin-fw/templates/fields/list-table.php +2 -2
- readme.txt +9 -3
includes/class.yith-woocompare-admin.php
CHANGED
@@ -144,8 +144,8 @@ if ( ! class_exists( 'YITH_Woocompare_Admin' ) ) {
|
|
144 |
$args = array(
|
145 |
'create_menu_page' => true,
|
146 |
'parent_slug' => '',
|
147 |
-
'page_title' =>
|
148 |
-
'menu_title' =>
|
149 |
'capability' => 'manage_options',
|
150 |
'parent' => '',
|
151 |
'parent_page' => 'yith_plugin_panel',
|
144 |
$args = array(
|
145 |
'create_menu_page' => true,
|
146 |
'parent_slug' => '',
|
147 |
+
'page_title' => 'YITH WooCommerce Compare',
|
148 |
+
'menu_title' => 'Compare',
|
149 |
'capability' => 'manage_options',
|
150 |
'parent' => '',
|
151 |
'parent_page' => 'yith_plugin_panel',
|
init.php
CHANGED
@@ -3,17 +3,17 @@
|
|
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.
|
7 |
* Author: YITH
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-compare
|
10 |
* Domain Path: /languages/
|
11 |
-
* WC requires at least: 5.
|
12 |
-
* WC tested up to:
|
13 |
*
|
14 |
* @author YITH
|
15 |
* @package YITH WooCommerce Compare
|
16 |
-
* @version 2.
|
17 |
*/
|
18 |
|
19 |
/*
|
@@ -75,7 +75,7 @@ if ( ! function_exists( 'yith_plugin_registration_hook' ) ) {
|
|
75 |
register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
|
76 |
|
77 |
if ( ! defined( 'YITH_WOOCOMPARE_VERSION' ) ) {
|
78 |
-
define( 'YITH_WOOCOMPARE_VERSION', '2.
|
79 |
}
|
80 |
if ( ! defined( 'YITH_WOOCOMPARE_FREE_INIT' ) ) {
|
81 |
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.10.0
|
7 |
* Author: YITH
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-compare
|
10 |
* Domain Path: /languages/
|
11 |
+
* WC requires at least: 5.9
|
12 |
+
* WC tested up to: 6.1
|
13 |
*
|
14 |
* @author YITH
|
15 |
* @package YITH WooCommerce Compare
|
16 |
+
* @version 2.10.0
|
17 |
*/
|
18 |
|
19 |
/*
|
75 |
register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
|
76 |
|
77 |
if ( ! defined( 'YITH_WOOCOMPARE_VERSION' ) ) {
|
78 |
+
define( 'YITH_WOOCOMPARE_VERSION', '2.10.0' );
|
79 |
}
|
80 |
if ( ! defined( 'YITH_WOOCOMPARE_FREE_INIT' ) ) {
|
81 |
define( 'YITH_WOOCOMPARE_FREE_INIT', plugin_basename( __FILE__ ) );
|
languages/yith-woocommerce-compare.pot
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the YITH WooCommerce Compare package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: YITH WooCommerce Compare 2.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/yith_woocommerce_compare\n"
|
8 |
-
"POT-Creation-Date:
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"PO-Revision-Date:
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
@@ -413,16 +413,6 @@ msgid ""
|
|
413 |
"e-commerce shop on <strong>YITH</strong></a>."
|
414 |
msgstr ""
|
415 |
|
416 |
-
#: includes/class.yith-woocompare-admin.php:147
|
417 |
-
msgctxt "Admin Plugin Name"
|
418 |
-
msgid "WooCommerce Compare"
|
419 |
-
msgstr ""
|
420 |
-
|
421 |
-
#: includes/class.yith-woocompare-admin.php:148
|
422 |
-
msgctxt "Admin Plugin Name"
|
423 |
-
msgid "Compare"
|
424 |
-
msgstr ""
|
425 |
-
|
426 |
#: includes/class.yith-woocompare-frontend.php:228
|
427 |
msgctxt "Label for popup close icon"
|
428 |
msgid "Close"
|
1 |
+
# Copyright (C) 2022 YITH
|
2 |
# This file is distributed under the same license as the YITH WooCommerce Compare package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: YITH WooCommerce Compare 2.10.0\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/yith_woocommerce_compare\n"
|
8 |
+
"POT-Creation-Date: 2022-01-17 15:48:56+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"PO-Revision-Date: 2022-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
413 |
"e-commerce shop on <strong>YITH</strong></a>."
|
414 |
msgstr ""
|
415 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
416 |
#: includes/class.yith-woocompare-frontend.php:228
|
417 |
msgctxt "Label for popup close icon"
|
418 |
msgid "Close"
|
plugin-fw/templates/fields/list-table.php
CHANGED
@@ -11,11 +11,11 @@ defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
|
11 |
list ( $field_id, $class, $the_title, $the_post_type, $args, $add_new_button, $add_new_url, $list_table_class, $list_table_class_dir, $search_form, $desc ) = yith_plugin_fw_extract( $field, 'id', 'class', 'title', 'post_type', 'args', 'add_new_button', 'add_new_url', 'list_table_class', 'list_table_class_dir', 'search_form', 'desc' );
|
12 |
|
13 |
$show_button = false;
|
14 |
-
if ( isset( $add_new_button ) && isset( $the_post_type ) ) {
|
15 |
$show_button = true;
|
16 |
$admin_url = admin_url( 'post-new.php' );
|
17 |
$params['post_type'] = $the_post_type;
|
18 |
-
$add_new_url = apply_filters( 'yith_plugin_fw_add_new_post_url', esc_url( add_query_arg( $params, $admin_url ) ), $params, isset( $args ) ? $args : false );
|
19 |
}
|
20 |
|
21 |
if ( isset( $list_table_class, $list_table_class_dir ) && ! class_exists( $list_table_class ) && file_exists( $list_table_class_dir ) ) {
|
11 |
list ( $field_id, $class, $the_title, $the_post_type, $args, $add_new_button, $add_new_url, $list_table_class, $list_table_class_dir, $search_form, $desc ) = yith_plugin_fw_extract( $field, 'id', 'class', 'title', 'post_type', 'args', 'add_new_button', 'add_new_url', 'list_table_class', 'list_table_class_dir', 'search_form', 'desc' );
|
12 |
|
13 |
$show_button = false;
|
14 |
+
if ( isset( $add_new_button ) && ( isset( $the_post_type ) || ( isset( $add_new_url ) ) ) ) {
|
15 |
$show_button = true;
|
16 |
$admin_url = admin_url( 'post-new.php' );
|
17 |
$params['post_type'] = $the_post_type;
|
18 |
+
$add_new_url = $add_new_url ? $add_new_url : apply_filters( 'yith_plugin_fw_add_new_post_url', esc_url( add_query_arg( $params, $admin_url ) ), $params, isset( $args ) ? $args : false );
|
19 |
}
|
20 |
|
21 |
if ( isset( $list_table_class, $list_table_class_dir ) && ! class_exists( $list_table_class ) && file_exists( $list_table_class_dir ) ) {
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
|
3 |
Contributors: yithemes
|
4 |
Tags: yith, woocommerce compare, compare products, product compare, product comparison
|
5 |
-
Requires at least: 5.
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.
|
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.9.0 = Released on 20 December 2021
|
70 |
|
71 |
* New: support for WooCommerce 6.0
|
2 |
|
3 |
Contributors: yithemes
|
4 |
Tags: yith, woocommerce compare, compare products, product compare, product comparison
|
5 |
+
Requires at least: 5.7
|
6 |
+
Tested up to: 5.9
|
7 |
+
Stable tag: 2.10.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 2.10.0 = Released on 17 January 2022
|
70 |
+
|
71 |
+
* New: support for WooCommerce 6.1
|
72 |
+
* New: support for WordPress 5.9
|
73 |
+
* Update: YITH plugin framework
|
74 |
+
|
75 |
= 2.9.0 = Released on 20 December 2021
|
76 |
|
77 |
* New: support for WooCommerce 6.0
|