Plugin Updates

This commit is contained in:
Tony Volpe
2024-04-02 20:23:21 +00:00
parent 96800520e8
commit 94170ec2c4
1514 changed files with 133309 additions and 105985 deletions

View File

@@ -561,7 +561,7 @@ function wc_create_refund( $args = array() ) {
}
// Negative line items.
if ( count( $args['line_items'] ) > 0 ) {
if ( is_array( $args['line_items'] ) && count( $args['line_items'] ) > 0 ) {
$items = $order->get_items( array( 'line_item', 'fee', 'shipping' ) );
foreach ( $items as $item_id => $item ) {