| @@ -104,5 +104,16 @@ | ||
| 104 | 104 | */ |
| 105 | 105 | public function clean_cache() { |
| 106 | 106 | wp_cache_delete( 'polylang_mo_ids' ); |
| 107 | 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 | + } | |
| 108 | 119 | } |