Status updates via API are manual

Closes #10943
This commit is contained in:
Mike Jolley 2016-05-19 11:50:19 +01:00
parent c22d9a3c14
commit ed08e51ddb
3 changed files with 3 additions and 3 deletions

View File

@ -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 );

View File

@ -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 );

View File

@ -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