Skip to content

Commit

Permalink
v1.9.1: hide PENDING transactions in the admin "transactions" tab
Browse files Browse the repository at this point in the history
  • Loading branch information
10xSebastian committed Jan 7, 2023
1 parent e54decd commit d13053f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions depay-woocommerce-payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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';

Expand Down
4 changes: 2 additions & 2 deletions includes/class-depay-wc-payments-rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
);

Expand Down
2 changes: 1 addition & 1 deletion languages/depay-woocommerce-payments.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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: "
"[email protected]\n"
"MIME-Version: 1.0\n"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d13053f

Please sign in to comment.