| @@ -2177,9 +2177,9 @@ | ||
| 2177 | 2177 | $meta = array(); |
| 2178 | 2178 | } elseif ( is_array( $fields ) ) { |
| 2179 | 2179 | $meta = $fields; |
| 2180 | 2180 | } else { |
| 2181 | - $meta = unserialize( $fields ); | |
| 2181 | + $meta = wel_safe_unserialize( $fields ); | |
| 2182 | 2182 | } |
| 2183 | 2183 | return $meta; |
| 2184 | 2184 | } |
| 2185 | 2185 | |
| @@ -2610,9 +2610,9 @@ | ||
| 2610 | 2610 | function get_usces_states( $country ) { |
| 2611 | 2611 | global $usces, $usces_states; |
| 2612 | 2612 | |
| 2613 | 2613 | $states = array(); |
| 2614 | - $prefs = maybe_unserialize( $usces->options['province'] ); | |
| 2614 | + $prefs = wel_safe_maybe_unserialize( $usces->options['province'] ); | |
| 2615 | 2615 | if ( ! isset( $prefs[ $country ] ) || empty( $prefs[ $country ] ) ) { |
| 2616 | 2616 | if ( $country == $usces->options['system']['base_country'] ) { |
| 2617 | 2617 | foreach ( (array) $prefs as $state ) { |
| 2618 | 2618 | if ( ! is_array( $state ) ) { |