Skip to content

Commit

Permalink
fix typo for product_id
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed May 17, 2024
1 parent 5e2de27 commit 39911fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/API/Orders_Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public function prepare_line_items( $posted, $action = 'create', $item = null )
*/
public function get_product_id( $posted, $action = 'create' ) {
// If id = 0, ie: miscellaneaous product, just return 0.
if ( isset( $posted['id'] ) && 0 == $posted['id'] ) {
if ( isset( $posted['product_id'] ) && 0 == $posted['product_id'] ) {
return 0;
}

Expand Down

0 comments on commit 39911fb

Please sign in to comment.