From 69a51f43ea5f0c9a55c08d0b98bc8f19bff5ea83 Mon Sep 17 00:00:00 2001 From: Dat Hoang Date: Sun, 13 Sep 2020 08:43:38 +0700 Subject: [PATCH] Hot fix - 1.5.1 - Fix the loading of WooViet_VND_PayPal_Standard Reported in https://wordpress.org/support/topic/plugin-bi-loi-phan-chuyen-doi-tien-te-paypal/ Bug introduced in this line and commit https://github.com/htdat/woo-viet/commit/752f6c26f35c33ffede1f3da9d208ca0e74ae7d8#diff-69930de797b06bf012c5e6601f0f0caeR260 --- readme.md | 4 ++++ readme.txt | 2 +- woo-viet.php | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 9ee759b..a91903a 100644 --- a/readme.md +++ b/readme.md @@ -8,6 +8,10 @@ Xem phiên bản tiếng Việt tại đây https://vi.wordpress.org/plugins/woo ## Changelog +### 1.5.1 - 2020.09.13 + +* Fix the loading of WooViet_VND_PayPal_Standard + ### 1.5.0 - 2020.09.10 * Add the OnePay international gateway #74 diff --git a/readme.txt b/readme.txt index dcf7916..227f4c8 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: OnePay WooCommerce, OnePay Vietnam, WooCommerce Vietnam, vietnam, vietname Requires at least: 4.3 Tested up to: 5.5.1 Requires PHP: 5.6 -Stable tag: 1.5.0 +Stable tag: 1.5.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html diff --git a/woo-viet.php b/woo-viet.php index 3bf8708..98f9ec2 100644 --- a/woo-viet.php +++ b/woo-viet.php @@ -7,10 +7,10 @@ * Author URI: https://profiles.wordpress.org/htdat * Text Domain: woo-viet * Domain Path: /languages - * Version: 1.5.0 + * Version: 1.5.1 * * WC requires at least: 3.0 - * WC tested up to: 4.4.1 + * WC tested up to: 4.5.1 * * License: GPLv2+ */ @@ -257,7 +257,7 @@ class WooViet { // Check if "Support VND for the PayPal Standard gateway" is enabled if ( 'yes' == $settings['vnd_paypal_standard']['enabled'] - AND class_exists( 'WC_Gateway_PPEC' ) + AND class_exists( 'WC_Gateway_Paypal' ) AND 'VND' == get_woocommerce_currency() ) { include( WOO_VIET_DIR . 'inc/class-wooviet-vnd-paypal-standard.php' );