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 -5 2.8.22.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 *
@@ -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,