PluginProbe
Polylang / 3.8.11
Polylang v3.8.11
3.8.11 3.8.10 3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 All 235 releases
← All changes | src/install/upgrade.php +2 -2 3.8.4 → 3.8.11 View file →
@@ -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 */