| @@ -2516,9 +2516,9 @@ | ||
| 2516 | 2516 | |
| 2517 | 2517 | $product = wel_get_product( $row['ID'] ); |
| 2518 | 2518 | $metas = $product['_ext']; |
| 2519 | 2519 | foreach ( $metas as $key => $value ) { |
| 2520 | - if ( '' === $key || '_' === substr( $key, 0, 1 ) || is_array( maybe_unserialize( $key ) ) ) { | |
| 2520 | + if ( '' === $key || '_' === substr( $key, 0, 1 ) || is_array( wel_safe_maybe_unserialize( $key ) ) ) { | |
| 2521 | 2521 | continue; |
| 2522 | 2522 | } |
| 2523 | 2523 | $meta_keys[ $key ] = 'null'; |
| 2524 | 2524 | } |
| @@ -2535,9 +2535,9 @@ | ||
| 2535 | 2535 | $new['item_code'] = $product['itemCode']; |
| 2536 | 2536 | $new['item_name'] = $product['itemName']; |
| 2537 | 2537 | |
| 2538 | 2538 | foreach ( $metas as $key => $values ) { |
| 2539 | - if ( '' === $key || '_' === substr( $key, 0, 1 ) || is_array( maybe_unserialize( $key ) ) ) { | |
| 2539 | + if ( '' === $key || '_' === substr( $key, 0, 1 ) || is_array( wel_safe_maybe_unserialize( $key ) ) ) { | |
| 2540 | 2540 | continue; |
| 2541 | 2541 | } |
| 2542 | 2542 | $vc = is_array( $values ) ? count( $values ) : 0; |
| 2543 | 2543 | if ( is_array( $values ) && 1 < $vc ) { |