| @@ -1,8 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * @package Polylang | |
| 4 | - */ | |
| 5 | 2 | |
| 6 | 3 | /** |
| 7 | 4 | * Manages strings translations storage |
| 8 | 5 | * |
| @@ -40,10 +37,8 @@ | ||
| 40 | 37 | $strings = array(); |
| 41 | 38 | foreach ( $this->entries as $entry ) { |
| 42 | 39 | $strings[] = array( $entry->singular, $this->translate( $entry->singular ) ); |
| 43 | 40 | } |
| 44 | - | |
| 45 | - $strings = wp_slash( $strings ); // Avoid breaking slashed strings in update_post_meta. See https://codex.wordpress.org/Function_Reference/update_post_meta#Character_Escaping | |
| 46 | 41 | |
| 47 | 42 | if ( empty( $lang->mo_id ) ) { |
| 48 | 43 | $post = array( |
| 49 | 44 | 'post_title' => 'polylang_mo_' . $lang->term_id, |