| @@ -167,9 +167,9 @@ | ||
| 167 | 167 | foreach ( $posts as $post ) { |
| 168 | 168 | $meta = get_post_meta( $post->ID, '_pll_strings_translations', true ); |
| 169 | 169 | |
| 170 | 170 | if ( empty( $meta ) ) { |
| 171 | - $strings = maybe_unserialize( $post->post_content ); | |
| 171 | + $strings = pll_maybe_unserialize( $post->post_content ); | |
| 172 | 172 | if ( is_array( $strings ) ) { |
| 173 | 173 | update_post_meta( $post->ID, '_pll_strings_translations', $strings ); |
| 174 | 174 | } |
| 175 | 175 | } |
| @@ -321,9 +321,9 @@ | ||
| 321 | 321 | // Empty or invalid value, should not happen. |
| 322 | 322 | continue; |
| 323 | 323 | } |
| 324 | 324 | |
| 325 | - $description = maybe_unserialize( $term->description ); | |
| 325 | + $description = pll_maybe_unserialize( $term->description ); | |
| 326 | 326 | $description = is_array( $description ) ? $description : array(); |
| 327 | 327 | |
| 328 | 328 | $description['fallbacks'] = $fallbacks; |
| 329 | 329 | /** @var string */ |