| @@ -1,8 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * @package Polylang | |
| 4 | - */ | |
| 5 | 2 | |
| 6 | 3 | /** |
| 7 | 4 | * Manages strings translations storage |
| 8 | 5 | * |
| @@ -41,10 +38,8 @@ | ||
| 41 | 38 | foreach ( $this->entries as $entry ) { |
| 42 | 39 | $strings[] = array( $entry->singular, $this->translate( $entry->singular ) ); |
| 43 | 40 | } |
| 44 | 41 | |
| 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 | - | |
| 47 | 42 | if ( empty( $lang->mo_id ) ) { |
| 48 | 43 | $post = array( |
| 49 | 44 | 'post_title' => 'polylang_mo_' . $lang->term_id, |
| 50 | 45 | 'post_status' => 'private', // To avoid a conflict with WP Super Cache. See https://wordpress.org/support/topic/polylang_mo-and-404s-take-2 |
| @@ -103,17 +98,6 @@ | ||
| 103 | 98 | * @since 2.0.5 |
| 104 | 99 | */ |
| 105 | 100 | public function clean_cache() { |
| 106 | 101 | wp_cache_delete( 'polylang_mo_ids' ); |
| 107 | - } | |
| 108 | - | |
| 109 | - /** | |
| 110 | - * Deletes a string | |
| 111 | - * | |
| 112 | - * @since 2.9 | |
| 113 | - * | |
| 114 | - * @param string $string The source string to remove from the translations. | |
| 115 | - */ | |
| 116 | - public function delete_entry( $string ) { | |
| 117 | - unset( $this->entries[ $string ] ); | |
| 118 | 102 | } |
| 119 | 103 | } |