parent
c22d9a3c14
commit
ed08e51ddb
|
@ -635,7 +635,7 @@ class WC_API_Orders extends WC_API_Resource {
|
|||
|
||||
// Order status.
|
||||
if ( ! empty( $data['status'] ) ) {
|
||||
$order->update_status( $data['status'], isset( $data['status_note'] ) ? $data['status_note'] : '' );
|
||||
$order->update_status( $data['status'], isset( $data['status_note'] ) ? $data['status_note'] : '', true );
|
||||
}
|
||||
|
||||
wc_delete_shop_order_transients( $order->id );
|
||||
|
|
|
@ -672,7 +672,7 @@ class WC_API_Orders extends WC_API_Resource {
|
|||
|
||||
// Order status.
|
||||
if ( ! empty( $data['status'] ) ) {
|
||||
$order->update_status( $data['status'], isset( $data['status_note'] ) ? $data['status_note'] : '' );
|
||||
$order->update_status( $data['status'], isset( $data['status_note'] ) ? $data['status_note'] : '', true );
|
||||
}
|
||||
|
||||
wc_delete_shop_order_transients( $order->id );
|
||||
|
|
|
@ -439,7 +439,7 @@ class WC_CLI_Order extends WC_CLI_Command {
|
|||
// order status
|
||||
if ( ! empty( $data['status'] ) ) {
|
||||
|
||||
$order->update_status( $data['status'], isset( $data['status_note'] ) ? $data['status_note'] : '' );
|
||||
$order->update_status( $data['status'], isset( $data['status_note'] ) ? $data['status_note'] : '', true );
|
||||
}
|
||||
|
||||
// customer ID
|
||||
|
|
Loading…
Reference in New Issue