Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v5.8.1 #303

Merged
merged 3 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading