PluginProbe
Welcart e-Commerce / 2.12.4
Welcart e-Commerce v2.12.4
2.12.4 2.12.3 2.11.35 2.12.2 2.12.1 2.11.34 2.11.33 2.11.32 2.11.31 2.11.30 1.3.16 1.3.17 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 All 292 releases
← All changes | functions/define_function.php +2 -2 2.11.342.12.4 View file →
@@ -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 ) {