PluginProbe
Polylang / 2.1
Polylang v2.1
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 3.0.2 3.0.3 All 233 releases
← All changes | include/mo.php +0 -16 2.92.1 View file →
@@ -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 }