another unused variable
This commit is contained in:
parent
3fd15ad50f
commit
7bbf2737be
|
@ -478,7 +478,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller {
|
||||||
if ( is_array( $request[ $line ] ) ) {
|
if ( is_array( $request[ $line ] ) ) {
|
||||||
foreach ( $request[ $line ] as $item ) {
|
foreach ( $request[ $line ] as $item ) {
|
||||||
$set_item = 'set_' . $line_type;
|
$set_item = 'set_' . $line_type;
|
||||||
$new_item = $this->$set_item( $order, $item, 'create' );
|
$this->$set_item( $order, $item, 'create' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue