diff --git a/changelog.txt b/changelog.txt index b981a02..ae8fd7b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ *** DePay Web3 Payments for WooCommerce Changelog *** +2023-1-7 - version 1.9.1 +* hide pending transactions in the admin "transactions" tab + 2023-1-6 - version 1.9.0 * upgrades widgets to v9 diff --git a/depay-woocommerce-payments.php b/depay-woocommerce-payments.php index 0b5742a..27a34ca 100644 --- a/depay-woocommerce-payments.php +++ b/depay-woocommerce-payments.php @@ -12,7 +12,7 @@ * WC tested up to: 7.1.1 * Requires at least: 5.8 * Requires PHP: 7.0 - * Version: 1.9.0 + * Version: 1.9.1 * * @package DePay\Payments */ @@ -22,7 +22,7 @@ define( 'DEPAY_WC_PLUGIN_FILE', __FILE__ ); define( 'DEPAY_WC_ABSPATH', __DIR__ . '/' ); define( 'DEPAY_MIN_WC_ADMIN_VERSION', '0.23.2' ); -define( 'DEPAY_CURRENT_VERSION', '1.9.0' ); +define( 'DEPAY_CURRENT_VERSION', '1.9.1' ); require_once DEPAY_WC_ABSPATH . '/vendor/autoload.php'; diff --git a/includes/class-depay-wc-payments-rest.php b/includes/class-depay-wc-payments-rest.php index 329eea6..f197f0b 100644 --- a/includes/class-depay-wc-payments-rest.php +++ b/includes/class-depay-wc-payments-rest.php @@ -488,11 +488,11 @@ public function fetch_transactions( $request ) { $orderby_sql = sanitize_sql_orderby( "{$orderby} {$order}" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared - $transactions = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM wp_wc_depay_transactions ORDER BY {$orderby_sql} LIMIT %d OFFSET %d", $limit, $offset ) ); + $transactions = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM wp_wc_depay_transactions ORDER BY {$orderby_sql} WHERE status != 'PENDING' LIMIT %d OFFSET %d", $limit, $offset ) ); $total = $wpdb->get_var( $wpdb->prepare( - 'SELECT COUNT(*) FROM wp_wc_depay_transactions AS total_count' + 'SELECT COUNT(*) FROM wp_wc_depay_transactions WHERE status != "PENDING" AS total_count' ) ); diff --git a/languages/depay-woocommerce-payments.pot b/languages/depay-woocommerce-payments.pot index dff2f95..ad5a02c 100644 --- a/languages/depay-woocommerce-payments.pot +++ b/languages/depay-woocommerce-payments.pot @@ -2,7 +2,7 @@ # This file is distributed under the same license as the package. msgid "" msgstr "" -"Project-Id-Version: DePay WooCommerce Payments 1.9.0\n" +"Project-Id-Version: DePay WooCommerce Payments 1.9.1\n" "Report-Msgid-Bugs-To: " "support@depay.com\n" "MIME-Version: 1.0\n" diff --git a/package.json b/package.json index 1ee9b80..a0252b8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-woocommerce-depay-payments", "moduleName": "WooCommerceDePayPayments", - "version": "1.9.0", + "version": "1.9.1", "description": "WooCommerce DePay plugin to accept Web3 payments directly into your wallet with on-the-fly conversion.", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", diff --git a/readme.txt b/readme.txt index 24a9ab6..e52a565 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: web3, payments, woocommerce, depay, cryptocurrency Requires at least: 5.8 Tested up to: 6.0 Requires PHP: 7.0 -Stable tag: 1.9.0 +Stable tag: 1.9.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html