Fix "Move to Trash" link in order edit screen (#39693)

* Order trash/delete link should use `id` querystring arg instead of `order`

* Add changelog
This commit is contained in:
Jorge A. Torres 2023-08-29 11:31:40 +01:00 committed by GitHub
parent eba89fff61
commit 8217339391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Restore moving to trash functionality within HPOS order edit screen.

View File

@ -103,7 +103,7 @@ class WC_Meta_Box_Order_Actions {
$trash_order_url = add_query_arg(
array(
'action' => 'trash',
'order' => array( $order_id ),
'id' => array( $order_id ),
'_wp_http_referer' => $order_list_url,
),
$order_list_url