another unused variable

This commit is contained in:
Mike Jolley 2016-06-06 19:09:35 +01:00
parent 3fd15ad50f
commit 7bbf2737be
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller {
if ( is_array( $request[ $line ] ) ) {
foreach ( $request[ $line ] as $item ) {
$set_item = 'set_' . $line_type;
$new_item = $this->$set_item( $order, $item, 'create' );
$this->$set_item( $order, $item, 'create' );
}
}
}