|
@@ 415-417 (lines=3) @@
|
| 412 |
|
wc_transaction_query( 'start' ); |
| 413 |
|
|
| 414 |
|
try { |
| 415 |
|
if ( ! isset( $data['order'] ) ) { |
| 416 |
|
throw new WC_API_Exception( 'woocommerce_api_missing_order_data', sprintf( __( 'No %1$s data specified to create %1$s', 'woocommerce' ), 'order' ), 400 ); |
| 417 |
|
} |
| 418 |
|
|
| 419 |
|
$data = $data['order']; |
| 420 |
|
|
|
@@ 557-559 (lines=3) @@
|
| 554 |
|
*/ |
| 555 |
|
public function edit_order( $id, $data ) { |
| 556 |
|
try { |
| 557 |
|
if ( ! isset( $data['order'] ) ) { |
| 558 |
|
throw new WC_API_Exception( 'woocommerce_api_missing_order_data', sprintf( __( 'No %1$s data specified to edit %1$s', 'woocommerce' ), 'order' ), 400 ); |
| 559 |
|
} |
| 560 |
|
|
| 561 |
|
$data = $data['order']; |
| 562 |
|
|