diff --git a/.github/workflows/wp-release.yml b/.github/workflows/wp-release.yml index e5f6ad2..3886a77 100644 --- a/.github/workflows/wp-release.yml +++ b/.github/workflows/wp-release.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Composer dependencies uses: php-actions/composer@v6 with: diff --git a/Dockerfile b/Dockerfile index 1de1c72..765ecda 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM wordpress:6.0 +FROM wordpress:6.1-php8.2 -ENV WOOCOMMERCE_VERSION 6.6.1 +ENV WOOCOMMERCE_VERSION 7.3.0 # Fetch WooCommerce. RUN apt-get update \ @@ -24,7 +24,9 @@ RUN curl -L "https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cl chmod +x /usr/bin/wp RUN { \ - echo 'file_uploads = On'; \ - echo 'post_max_size=100M'; \ - echo 'upload_max_filesize=100M'; \ + echo 'file_uploads = On'; \ + echo 'post_max_size=100M'; \ + echo 'upload_max_filesize=100M'; \ + echo 'display_errors=on'; \ + echo 'display_errors=E_ALL'; \ } > /usr/local/etc/php/conf.d/custom.ini diff --git a/btcpay-greenfield-for-woocommerce.php b/btcpay-greenfield-for-woocommerce.php index 7fcc8f9..3fc7070 100644 --- a/btcpay-greenfield-for-woocommerce.php +++ b/btcpay-greenfield-for-woocommerce.php @@ -7,12 +7,12 @@ * Author URI: https://btcpayserver.org * Text Domain: btcpay-greenfield-for-woocommerce * Domain Path: /languages - * Version: 1.1.2 + * Version: 1.1.3 * Requires PHP: 7.4 * Tested up to: 6.1 * Requires at least: 5.2 - * WC requires at least: 5.0.0 - * WC tested up to: 7.1 + * WC requires at least: 6.0.0 + * WC tested up to: 7.3 */ use BTCPayServer\WC\Admin\Notice; @@ -24,7 +24,7 @@ defined( 'ABSPATH' ) || exit(); -define( 'BTCPAYSERVER_VERSION', '1.1.2' ); +define( 'BTCPAYSERVER_VERSION', '1.1.3' ); define( 'BTCPAYSERVER_VERSION_KEY', 'btcpay_gf_version' ); define( 'BTCPAYSERVER_PLUGIN_FILE_PATH', plugin_dir_path( __FILE__ ) ); define( 'BTCPAYSERVER_PLUGIN_URL', plugin_dir_url(__FILE__ ) ); @@ -37,7 +37,7 @@ class BTCPayServerWCPlugin { public function __construct() { $this->includes(); - add_action('woocommerce_thankyou_btcpaygf_default', [$this, 'orderStatusThankYouPage'], 10, 1); + add_action('woocommerce_thankyou_btcpaygf_default', ['BTCPayServerWCPlugin', 'orderStatusThankYouPage'], 10, 1); // Run the updates. \BTCPayServer\WC\Helper\UpdateManager::processUpdates(); @@ -201,7 +201,7 @@ public function processAjaxApiUrl() { wp_send_json_error("Error processing Ajax request."); } - public function orderStatusThankYouPage($order_id) + public static function orderStatusThankYouPage($order_id) { if (!$order = wc_get_order($order_id)) { return; diff --git a/readme.txt b/readme.txt index d9ec6aa..5bc25e1 100644 --- a/readme.txt +++ b/readme.txt @@ -103,6 +103,10 @@ You'll find extensive documentation and answers to many of your questions on [BT 6. Example of the PoS app you can launch. == Changelog == += 1.1.3 :: 2023-01-20 = +* Fix: fixed error on thank you page for separate payment methods. +* Dev: updating Docker to latest WP and WC versions. +* Dev: switch Github action for checkout to v3. = 1.1.2 :: 2022-12-09 = * Fix existing invoice check, wrongly marking invoice invalid on some use cases.