| @@ -61,9 +61,9 @@ | ||
| 61 | 61 | if ( empty( $data ) || ! array_key_exists( 'order_condition', $data ) ) { |
| 62 | 62 | $condition = $usces->get_condition(); |
| 63 | 63 | $tax_mode = $usces->options['tax_mode']; |
| 64 | 64 | } else { |
| 65 | - $condition = maybe_unserialize( $data['order_condition'] ); | |
| 65 | + $condition = wel_safe_maybe_unserialize( $data['order_condition'] ); | |
| 66 | 66 | $tax_mode = ( isset( $condition['tax_mode'] ) ) ? $condition['tax_mode'] : $usces->options['tax_mode']; |
| 67 | 67 | } |
| 68 | 68 | if ( 'exclude' === $tax_mode ) { |
| 69 | 69 | $label = __( 'consumption tax', 'usces' ); |
| @@ -106,9 +106,9 @@ | ||
| 106 | 106 | if ( empty( $data ) || ! array_key_exists( 'order_condition', $data ) ) { |
| 107 | 107 | $condition = $usces->get_condition(); |
| 108 | 108 | $tax_mode = $usces->options['tax_mode']; |
| 109 | 109 | } else { |
| 110 | - $condition = maybe_unserialize( $data['order_condition'] ); | |
| 110 | + $condition = wel_safe_maybe_unserialize( $data['order_condition'] ); | |
| 111 | 111 | $tax_mode = ( isset( $condition['tax_mode'] ) ) ? $condition['tax_mode'] : $usces->options['tax_mode']; |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | if ( ! usces_is_tax_display() ) { |
| @@ -142,9 +142,9 @@ | ||
| 142 | 142 | 'shipping_charge' => $data['order_shipping_charge'], |
| 143 | 143 | 'cod_fee' => $data['order_cod_fee'], |
| 144 | 144 | 'use_point' => $data['order_usedpoint'], |
| 145 | 145 | 'carts' => usces_get_ordercartdata( $data['ID'] ), |
| 146 | - 'condition' => unserialize( $data['order_condition'] ), | |
| 146 | + 'condition' => wel_safe_unserialize( $data['order_condition'] ), | |
| 147 | 147 | ); |
| 148 | 148 | $tax_str = '( ' . usces_crform( usces_internal_tax( $materials, 'return' ), true, false, 'return' ) . ' )'; |
| 149 | 149 | } elseif ( array_key_exists( 'tax', $data ) ) { |
| 150 | 150 | $item_total_price = $usces->get_total_price( $data['cart'] ); |
| @@ -3976,9 +3976,9 @@ | ||
| 3976 | 3976 | if ( is_array( $options ) && count( $options ) > 0 ) { |
| 3977 | 3977 | foreach ( $options as $key => $value ) { |
| 3978 | 3978 | if ( ! empty( $key ) ) { |
| 3979 | 3979 | $key = urldecode( $key ); |
| 3980 | - $value = maybe_unserialize( $value ); | |
| 3980 | + $value = wel_safe_maybe_unserialize( $value ); | |
| 3981 | 3981 | if ( is_array( $value ) ) { |
| 3982 | 3982 | $c = ''; |
| 3983 | 3983 | $optstr .= esc_html( $key ) . ' : '; |
| 3984 | 3984 | foreach ( $value as $v ) { |