Skip to content

Commit

Permalink
Merge pull request #303 from alma/hotfix/v5.8.1
Browse files Browse the repository at this point in the history
Release v5.8.1
  • Loading branch information
joyet-simon authored Dec 16, 2024
2 parents 8e53b48 + e23c369 commit 4eb9606
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v5.8.1 - 2024-12-16

### 🐛 Bug Fixes

Hotfix: compatibility for Woocommerce version under 6.1.0

## v5.8.0 - 2024-12-12

### Changes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- Tested up to Wordpress: 6.6.1
- Tested up to Woocommerce: 9.2.3
- Requires PHP: 5.6
- Stable tag: 5.8.0
- Stable tag: 5.8.1
- License: GPLv3
- License URI: https://www.gnu.org/licenses/gpl-3.0.html
- Support: [email protected]
Expand Down
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: payments, BNPL, woocommerce, ecommerce, e-commerce, payment gateway, sell,
Requires at least: 4.4
Tested up to: 6.3
Requires PHP: 5.6
Stable tag: 5.8.0
Stable tag: 5.8.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -51,6 +51,12 @@ You can find more documentation on our [website](https://docs.almapay.com/docs/w

== Changelog ==

## v5.8.1 - 2024-12-16

### 🐛 Bug Fixes

Hotfix: compatibility for Woocommerce version under 6.1.0

## v5.8.0 - 2024-12-12

### Changes
Expand Down
11 changes: 6 additions & 5 deletions src/alma-gateway-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Alma - Pay in installments or later for WooCommerce
* Plugin URI: https://docs.almapay.com/docs/woocommerce
* Description: Install Alma and boost your sales! It's simple and guaranteed, your cash flow is secured. 0 commitment, 0 subscription, 0 risk.
* Version: 5.8.0
* Version: 5.8.1
* Author: Alma
* Author URI: https://almapay.com
* License: GNU General Public License v3.0
Expand Down Expand Up @@ -33,14 +33,12 @@
* along with Alma Payment Gateway for WooCommerce. If not, see https://www.gnu.org/licenses/gpl-3.0.html.
*/

use Automattic\WooCommerce\Utilities\FeaturesUtil;

if ( ! defined( 'ABSPATH' ) ) {
die( 'Not allowed' ); // Exit if accessed directly.
}

if ( ! defined( 'ALMA_VERSION' ) ) {
define( 'ALMA_VERSION', '5.8.0' );
define( 'ALMA_VERSION', '5.8.1' );
}
if ( ! defined( 'ALMA_PLUGIN_FILE' ) ) {
define( 'ALMA_PLUGIN_FILE', __FILE__ );
Expand Down Expand Up @@ -92,6 +90,9 @@ function () {
}
);

/**
* Init custom_order_tables if available in Woocommerce version.
*/
add_action(
'before_woocommerce_init',
function () {
Expand All @@ -101,7 +102,7 @@ function () {
*
* @psalm-suppress UndefinedClass
*/
FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
}
}
);
Expand Down

0 comments on commit 4eb9606

Please sign in to comment.