| @@ -71,9 +71,9 @@ | ||
| 71 | 71 | if ( empty( $language ) ) { |
| 72 | 72 | continue; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - $strings = maybe_unserialize( $term_meta['value'] ); | |
| 75 | + $strings = pll_maybe_unserialize( $term_meta['value'] ); | |
| 76 | 76 | $mo = new PLL_MO(); |
| 77 | 77 | $mo->import_from_db( $language ); |
| 78 | 78 | foreach ( $strings as $msg ) { |
| 79 | 79 | $mo->add_entry_or_merge( $mo->make_entry( $msg[0], $msg[1] ) ); |
| @@ -115,9 +115,9 @@ | ||
| 115 | 115 | // Language switcher menu items |
| 116 | 116 | foreach ( $menu_items as $item ) { |
| 117 | 117 | foreach ( $item['postmeta'] as $meta ) { |
| 118 | 118 | if ( '_pll_menu_item' == $meta['key'] ) { |
| 119 | - update_post_meta( $this->processed_menu_items[ $item['post_id'] ], '_pll_menu_item', maybe_unserialize( $meta['value'] ) ); | |
| 119 | + update_post_meta( $this->processed_menu_items[ $item['post_id'] ], '_pll_menu_item', pll_maybe_unserialize( $meta['value'] ) ); | |
| 120 | 120 | } |
| 121 | 121 | } |
| 122 | 122 | } |
| 123 | 123 | } |
| @@ -134,9 +134,9 @@ | ||
| 134 | 134 | |
| 135 | 135 | $term_relationships = array(); |
| 136 | 136 | |
| 137 | 137 | foreach ( $terms as $term ) { |
| 138 | - $translations = maybe_unserialize( $term['term_description'] ); | |
| 138 | + $translations = pll_maybe_unserialize( $term['term_description'] ); | |
| 139 | 139 | foreach ( $translations as $slug => $old_id ) { |
| 140 | 140 | if ( $old_id && ! empty( $this->processed_terms[ $old_id ] ) && $lang = PLL()->model->get_language( $slug ) ) { |
| 141 | 141 | // Language relationship. |
| 142 | 142 | $term_relationships[] = array( $this->processed_terms[ $old_id ], $lang->get_tax_prop( 'term_language', 'term_taxonomy_id' ) ); |
| @@ -196,9 +196,9 @@ | ||
| 196 | 196 | $languages = pll_languages_list(); |
| 197 | 197 | $to_update = array(); |
| 198 | 198 | |
| 199 | 199 | foreach ( $terms as $term ) { |
| 200 | - $translations = maybe_unserialize( $term['term_description'] ); | |
| 200 | + $translations = pll_maybe_unserialize( $term['term_description'] ); | |
| 201 | 201 | $new_translations = array(); |
| 202 | 202 | foreach ( $translations as $slug => $old_id ) { |
| 203 | 203 | if ( in_array( $slug, $languages, true ) && $old_id && ! empty( $processed_objects[ $old_id ] ) ) { |
| 204 | 204 | $new_translations[ $slug ] = $processed_objects[ $old_id ]; |