Version Description
(2017-09-22) =
- Pro: Fix Duplicate post button not working when the user meta has been corrupted
- Fix PHP notice with the plugin Members #175
- Fix page template select displayed when editing a translated page for posts
- Fix incompatibility with WP 4.8.2 (placeholder %1$s in prepare)
Download this release
Release Info
Developer | Chouby |
Plugin | Polylang |
Version | 2.2.2 |
Comparing to | |
See all releases |
Code changes from version 2.2.1 to 2.2.2
- admin/admin-filters-post.php +0 -6
- admin/admin-model.php +1 -1
- admin/admin-static-pages.php +23 -0
- changelog.txt +91 -0
- frontend/frontend-static-pages.php +0 -14
- include/static-pages.php +14 -0
- include/translated-object.php +1 -1
- install/upgrade.php +1 -1
- polylang.php +2 -2
- readme.txt +8 -92
admin/admin-filters-post.php
CHANGED
@@ -114,7 +114,6 @@ class PLL_Admin_Filters_Post extends PLL_Admin_Filters_Post_Base {
|
|
114 |
|
115 |
/**
|
116 |
* Adds the Language box in the 'Edit Post' and 'Edit Page' panels ( as well as in custom post types panels )
|
117 |
-
* Removes the editor for translations of the pages for posts
|
118 |
*
|
119 |
* @since 0.1
|
120 |
*
|
@@ -125,11 +124,6 @@ class PLL_Admin_Filters_Post extends PLL_Admin_Filters_Post_Base {
|
|
125 |
if ( $this->model->is_translated_post_type( $post_type ) ) {
|
126 |
add_meta_box( 'ml_box', __( 'Languages','polylang' ), array( $this, 'post_language' ), $post_type, 'side', 'high' );
|
127 |
}
|
128 |
-
|
129 |
-
if ( ( $page_for_posts = get_option( 'page_for_posts' ) ) && ( $translations = $this->model->post->get_translations( $page_for_posts ) ) && in_array( $post->ID, $translations ) && empty( $post->post_content ) ) {
|
130 |
-
add_action( 'edit_form_after_title', '_wp_posts_page_notice' );
|
131 |
-
remove_post_type_support( $post_type, 'editor' );
|
132 |
-
}
|
133 |
}
|
134 |
|
135 |
/**
|
114 |
|
115 |
/**
|
116 |
* Adds the Language box in the 'Edit Post' and 'Edit Page' panels ( as well as in custom post types panels )
|
|
|
117 |
*
|
118 |
* @since 0.1
|
119 |
*
|
124 |
if ( $this->model->is_translated_post_type( $post_type ) ) {
|
125 |
add_meta_box( 'ml_box', __( 'Languages','polylang' ), array( $this, 'post_language' ), $post_type, 'side', 'high' );
|
126 |
}
|
|
|
|
|
|
|
|
|
|
|
127 |
}
|
128 |
|
129 |
/**
|
admin/admin-model.php
CHANGED
@@ -350,7 +350,7 @@ class PLL_Admin_Model extends PLL_Model {
|
|
350 |
|
351 |
foreach ( $translations as $t ) {
|
352 |
$term = uniqid( 'pll_' ); // the term name
|
353 |
-
$terms[] = $wpdb->prepare( '( "%
|
354 |
$slugs[] = $wpdb->prepare( '"%s"', $term );
|
355 |
$description[ $term ] = serialize( $t );
|
356 |
$count[ $term ] = count( $t );
|
350 |
|
351 |
foreach ( $translations as $t ) {
|
352 |
$term = uniqid( 'pll_' ); // the term name
|
353 |
+
$terms[] = $wpdb->prepare( '( "%s", "%s" )', $term, $term );
|
354 |
$slugs[] = $wpdb->prepare( '"%s"', $term );
|
355 |
$description[ $term ] = serialize( $t );
|
356 |
$count[ $term ] = count( $t );
|
admin/admin-static-pages.php
CHANGED
@@ -17,6 +17,9 @@ class PLL_Admin_Static_Pages extends PLL_Static_Pages {
|
|
17 |
public function __construct( &$polylang ) {
|
18 |
parent::__construct( $polylang );
|
19 |
|
|
|
|
|
|
|
20 |
// Add post state for translations of the front page and posts page
|
21 |
add_filter( 'display_post_states', array( $this, 'display_post_states' ), 10, 2 );
|
22 |
|
@@ -31,6 +34,26 @@ class PLL_Admin_Static_Pages extends PLL_Static_Pages {
|
|
31 |
add_filter( 'pre_update_option_show_on_front', array( $this, 'update_show_on_front' ), 10, 2 );
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
/**
|
35 |
* Add post state for translations of the front page and posts page
|
36 |
*
|
17 |
public function __construct( &$polylang ) {
|
18 |
parent::__construct( $polylang );
|
19 |
|
20 |
+
// Removes the editor and the template select dropdown for pages for posts
|
21 |
+
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ), 10, 2 );
|
22 |
+
|
23 |
// Add post state for translations of the front page and posts page
|
24 |
add_filter( 'display_post_states', array( $this, 'display_post_states' ), 10, 2 );
|
25 |
|
34 |
add_filter( 'pre_update_option_show_on_front', array( $this, 'update_show_on_front' ), 10, 2 );
|
35 |
}
|
36 |
|
37 |
+
/**
|
38 |
+
* Removes the editor for translations of the pages for posts
|
39 |
+
* Removes the page template select dropdown in page attributes metabox too
|
40 |
+
*
|
41 |
+
* @since 2.2.2
|
42 |
+
*
|
43 |
+
* @param string $post_type Current post type
|
44 |
+
* @param object $post Current post
|
45 |
+
*/
|
46 |
+
function add_meta_boxes( $post_type, $post ) {
|
47 |
+
if ( 'page' === $post_type ) {
|
48 |
+
add_filter( 'option_page_for_posts', array( $this, 'translate_page_for_posts' ) );
|
49 |
+
|
50 |
+
if ( ( $page_for_posts = get_option( 'page_for_posts' ) ) && empty( $post->post_content ) ) {
|
51 |
+
add_action( 'edit_form_after_title', '_wp_posts_page_notice' );
|
52 |
+
remove_post_type_support( $post_type, 'editor' );
|
53 |
+
}
|
54 |
+
}
|
55 |
+
}
|
56 |
+
|
57 |
/**
|
58 |
* Add post state for translations of the front page and posts page
|
59 |
*
|
changelog.txt
CHANGED
@@ -2,6 +2,97 @@
|
|
2 |
|
3 |
This file contains only old changelog. See readme.txt for newer versions.
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
= 2.0.12 (2016-12-19) =
|
6 |
|
7 |
* Fix plugin not loaded first (introduced in 2.0.11)
|
2 |
|
3 |
This file contains only old changelog. See readme.txt for newer versions.
|
4 |
|
5 |
+
= 2.1.6 (2017-07-17) =
|
6 |
+
|
7 |
+
* Pro: fix duplicate post button not working in PHP 7.1
|
8 |
+
* Pro: fix CPTUI untranslated labels on admin
|
9 |
+
* Adapt related posts filter to use slug instead of name to follow changes made on Jetpack server ( Props Steve Kaeser )
|
10 |
+
* Fix PHP notices when translating CPT and custom tax titles in Yoast SEO
|
11 |
+
* Fix PHP warning when all plugins are networked activated
|
12 |
+
|
13 |
+
= 2.1.5 (2017-05-31) =
|
14 |
+
|
15 |
+
* Add compatibility with new media widgets introduced in WP 4.8
|
16 |
+
* Removing the language information in URL for the default language is now default
|
17 |
+
* Update plugin updater class to 1.6.12
|
18 |
+
* Pro: fix PHP notices when duplicating the content
|
19 |
+
* Fix: test existence of `twentyseventeen_panel_count` instead of relying only on the active template
|
20 |
+
* Fix: set current property to false when removing the current-menu-item class #134 props @mowar
|
21 |
+
* Fix PHP notice when editing a term without language
|
22 |
+
* Fix possible PHP notice when deleting a category
|
23 |
+
* Fix fatal error with Gantry 5
|
24 |
+
|
25 |
+
= 2.1.4 (2017-05-16) =
|
26 |
+
|
27 |
+
* Pro: fix user not logged in on secondary domain when previewing changes
|
28 |
+
* Pro: fix archive links without language code in ACF link field (ACF 5.4.0+)
|
29 |
+
* Fix redirection from www subdomain to wrong language domain.
|
30 |
+
* Fix: selecting "Front page displays latest posts" in the customizer not cleaning the languages cache
|
31 |
+
* Fix accessibility of the admin language switcher
|
32 |
+
|
33 |
+
= 2.1.3 (2017-04-11) =
|
34 |
+
|
35 |
+
* Pro: Fix translated slug of 'page' if it is translated to an empty string
|
36 |
+
* Update plugin updater class to 1.6.11
|
37 |
+
* Strings registered with a wpml-config.xml file or WPML functions are now multiline by default
|
38 |
+
* Translate the site title in emails sent to the user
|
39 |
+
* Fix sanitize_user for specific locales
|
40 |
+
* Fix deprecation notice in Yoast SEO integration
|
41 |
+
* Fix: Clean term cache after the language has been set in mass #119
|
42 |
+
|
43 |
+
= 2.1.2 (2017-03-09) =
|
44 |
+
|
45 |
+
* Pro: Add filter 'pll_xdata_nonce_life'
|
46 |
+
* Pro: Fix translation of WooCommerce product attribute slug
|
47 |
+
* Pro: Fix product synchronization in WooCommerce 2.7
|
48 |
+
* Pro: Fix error message when bulk trashing synchronized posts
|
49 |
+
* Add option to discard item spacing in the output of pll_the_languages() ( Props Ceslav Przywara ) #93 #95
|
50 |
+
* Add as, dzo, kab, km, ml_IN, nl_BE, pa_IN, rhg, sah, ta_IN, tah, te, tt_RU to the predefined list of languages
|
51 |
+
* Update plugin updater class to 1.6.10
|
52 |
+
* Fix: Remove the dependency to is_ssl() to detect the language in the url ( language set from the directory name )
|
53 |
+
* Fix issue with secondary level domains
|
54 |
+
* Fix strings not translated in emails
|
55 |
+
* Fix incorrect usage of add_action() ( Props Peter J. Herrel ) #103
|
56 |
+
* Fix wrong redirect in customizer in WP 4.7
|
57 |
+
|
58 |
+
= 2.1.1 (2017-02-15) =
|
59 |
+
|
60 |
+
* Pro: Add filter 'pll_enable_duplicate_media' for a fine control of automatic media duplication
|
61 |
+
* Add filter 'pll_links_model' for the links model class name
|
62 |
+
* Trim any starting ^ from modified rewrite rules
|
63 |
+
* Pro: Fix wrong count of plugins to udpate
|
64 |
+
* Fix slashed strings translations not saved #94
|
65 |
+
|
66 |
+
= 2.1 (2017-01-25) =
|
67 |
+
|
68 |
+
* Minimum WordPress version is now 4.4
|
69 |
+
* Pro: Add support for synchronized posts (same post in multiple languages)
|
70 |
+
* Pro: Add support for custom post type UI and the Divi Builder
|
71 |
+
* Improve support of Yoast SEO (no category base and post type archive breadcrumb title)
|
72 |
+
* Move Languages menu at top level instead of submenu of the WordPress settings
|
73 |
+
* Copy the original post date when creating a translation and when the date is synchronized (Props Jory Hogeveen) #32
|
74 |
+
* Remove hreflang attributes on paged pages and paged posts
|
75 |
+
* Add label to widget language dropdown for better accessibility (Props Lawrence Francell) #53 #56
|
76 |
+
* Remove constants POLYLANG_URL and PLL_LOCAL_URL
|
77 |
+
* wp_get_sidebars_widgets() and is_active_sidebar() are now filtered according to widgets languages #54
|
78 |
+
* Add functions pll_esc_html__(), pll_esc_html_e(), pll_esc_attr__() and pll_esc_attr_e() to the API (Props jegbagus) #83
|
79 |
+
* Pro: Fix conflict between WooCommerce shop on front and translated shop base slug
|
80 |
+
* Pro: Fix $wp_rewrite search base and author_base not translated #68
|
81 |
+
* Pro: Fix page preview does not log in the user when using sudomains
|
82 |
+
* Fix: avoid setting the language cookie on 404 pages
|
83 |
+
* Fix: rewrite rules order modified for custom post types archives
|
84 |
+
* Fix: conflict with WP All Import causing our filters to fail in "Add Media" modal when editing a post
|
85 |
+
* Fix: auto add pages not working for nav menus assigned to several locations
|
86 |
+
* Fix: Jetpack infinite scroll for multiple domains #58 #74
|
87 |
+
* Fix: serialize error in Strings translations when balanceTags option is active #63
|
88 |
+
* Fix: static front page preview when redirected from the languages page #49
|
89 |
+
* Fix: Auto add pages not working for nav menus assigned to several locations
|
90 |
+
* Fix: Conflict with Woocommerce Show Single Variation
|
91 |
+
* Fix: Parent page not synchronized in Quick edit (introduced in 2.0.8)
|
92 |
+
* Fix: WPML API wpml_element_has_translations and wpml_post_language_details
|
93 |
+
* Fix: unattached media translations not in language switcher
|
94 |
+
* Fix: Conflict with WP Residence advanced search
|
95 |
+
|
96 |
= 2.0.12 (2016-12-19) =
|
97 |
|
98 |
* Fix plugin not loaded first (introduced in 2.0.11)
|
frontend/frontend-static-pages.php
CHANGED
@@ -19,7 +19,6 @@ class PLL_Frontend_Static_Pages extends PLL_Static_Pages {
|
|
19 |
|
20 |
$this->links_model = &$polylang->links_model;
|
21 |
$this->links = &$polylang->links;
|
22 |
-
$this->curlang = &$polylang->curlang;
|
23 |
|
24 |
add_action( 'pll_language_defined', array( $this, 'pll_language_defined' ) );
|
25 |
add_action( 'pll_home_requested', array( $this, 'pll_home_requested' ) );
|
@@ -76,19 +75,6 @@ class PLL_Frontend_Static_Pages extends PLL_Static_Pages {
|
|
76 |
return isset( $this->curlang->page_on_front ) ? $this->curlang->page_on_front : $v;
|
77 |
}
|
78 |
|
79 |
-
/**
|
80 |
-
* Translates page for posts
|
81 |
-
*
|
82 |
-
* @since 1.8
|
83 |
-
*
|
84 |
-
* @param int $v page for posts page id
|
85 |
-
* @return int
|
86 |
-
*/
|
87 |
-
public function translate_page_for_posts( $v ) {
|
88 |
-
// Returns the current page if there is no translation to avoid ugly notices
|
89 |
-
return isset( $this->curlang->page_for_posts ) ? $this->curlang->page_for_posts : $v;
|
90 |
-
}
|
91 |
-
|
92 |
/**
|
93 |
* Manages canonical redirection of the homepage when using page on front
|
94 |
*
|
19 |
|
20 |
$this->links_model = &$polylang->links_model;
|
21 |
$this->links = &$polylang->links;
|
|
|
22 |
|
23 |
add_action( 'pll_language_defined', array( $this, 'pll_language_defined' ) );
|
24 |
add_action( 'pll_home_requested', array( $this, 'pll_home_requested' ) );
|
75 |
return isset( $this->curlang->page_on_front ) ? $this->curlang->page_on_front : $v;
|
76 |
}
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
/**
|
79 |
* Manages canonical redirection of the homepage when using page on front
|
80 |
*
|
include/static-pages.php
CHANGED
@@ -19,6 +19,7 @@ abstract class PLL_Static_Pages {
|
|
19 |
public function __construct( &$polylang ) {
|
20 |
$this->model = &$polylang->model;
|
21 |
$this->options = &$polylang->options;
|
|
|
22 |
|
23 |
$this->init();
|
24 |
|
@@ -85,4 +86,17 @@ abstract class PLL_Static_Pages {
|
|
85 |
|
86 |
return $languages;
|
87 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
}
|
19 |
public function __construct( &$polylang ) {
|
20 |
$this->model = &$polylang->model;
|
21 |
$this->options = &$polylang->options;
|
22 |
+
$this->curlang = &$polylang->curlang;
|
23 |
|
24 |
$this->init();
|
25 |
|
86 |
|
87 |
return $languages;
|
88 |
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Translates page for posts
|
92 |
+
*
|
93 |
+
* @since 1.8
|
94 |
+
*
|
95 |
+
* @param int $v page for posts page id
|
96 |
+
* @return int
|
97 |
+
*/
|
98 |
+
public function translate_page_for_posts( $v ) {
|
99 |
+
// Returns the current page if there is no translation to avoid ugly notices
|
100 |
+
return isset( $this->curlang->page_for_posts ) ? $this->curlang->page_for_posts : $v;
|
101 |
+
}
|
102 |
}
|
include/translated-object.php
CHANGED
@@ -38,7 +38,7 @@ abstract class PLL_Translated_Object {
|
|
38 |
* @return bool|object the term associated to the object in the requested taxonomy if exists, false otherwise
|
39 |
*/
|
40 |
public function get_object_term( $object_id, $taxonomy ) {
|
41 |
-
if ( empty( $object_id ) ) {
|
42 |
return false;
|
43 |
}
|
44 |
|
38 |
* @return bool|object the term associated to the object in the requested taxonomy if exists, false otherwise
|
39 |
*/
|
40 |
public function get_object_term( $object_id, $taxonomy ) {
|
41 |
+
if ( empty( $object_id ) || is_wp_error( $object_id ) ) {
|
42 |
return false;
|
43 |
}
|
44 |
|
install/upgrade.php
CHANGED
@@ -219,7 +219,7 @@ class PLL_Upgrade {
|
|
219 |
|
220 |
foreach ( $objects as $obj ) {
|
221 |
$term = uniqid( 'pll_' ); // The term name
|
222 |
-
$terms[] = $wpdb->prepare( '( "%
|
223 |
$slugs[] = $wpdb->prepare( '"%s"', $term );
|
224 |
$translations = maybe_unserialize( maybe_unserialize( $obj ) ); // 2 unserialize due to an old storage bug
|
225 |
$description[ $term ] = serialize( $translations );
|
219 |
|
220 |
foreach ( $objects as $obj ) {
|
221 |
$term = uniqid( 'pll_' ); // The term name
|
222 |
+
$terms[] = $wpdb->prepare( '( "%s", "%s" )', $term, $term );
|
223 |
$slugs[] = $wpdb->prepare( '"%s"', $term );
|
224 |
$translations = maybe_unserialize( maybe_unserialize( $obj ) ); // 2 unserialize due to an old storage bug
|
225 |
$description[ $term ] = serialize( $translations );
|
polylang.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
Plugin Name: Polylang
|
5 |
Plugin URI: https://polylang.pro
|
6 |
-
Version: 2.2.
|
7 |
Author: Frédéric Demarle
|
8 |
Author uri: https://polylang.pro
|
9 |
Description: Adds multilingual capability to WordPress
|
@@ -35,7 +35,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
35 |
exit; // don't access directly
|
36 |
};
|
37 |
|
38 |
-
define( 'POLYLANG_VERSION', '2.2.
|
39 |
define( 'PLL_MIN_WP_VERSION', '4.4' );
|
40 |
|
41 |
define( 'POLYLANG_FILE', __FILE__ ); // this file
|
3 |
/**
|
4 |
Plugin Name: Polylang
|
5 |
Plugin URI: https://polylang.pro
|
6 |
+
Version: 2.2.2
|
7 |
Author: Frédéric Demarle
|
8 |
Author uri: https://polylang.pro
|
9 |
Description: Adds multilingual capability to WordPress
|
35 |
exit; // don't access directly
|
36 |
};
|
37 |
|
38 |
+
define( 'POLYLANG_VERSION', '2.2.2' );
|
39 |
define( 'PLL_MIN_WP_VERSION', '4.4' );
|
40 |
|
41 |
define( 'POLYLANG_FILE', __FILE__ ); // this file
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://polylang.pro
|
|
4 |
Tags: multilingual, bilingual, translate, translation, language, multilanguage, international, localization
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Making WordPress multilingual
|
@@ -76,6 +76,13 @@ Don't hesitate to [give your feedback](http://wordpress.org/support/view/plugin-
|
|
76 |
|
77 |
== Changelog ==
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
= 2.2.1 (2017-08-30) =
|
80 |
|
81 |
* Pro: partially refactor REST API classes
|
@@ -123,95 +130,4 @@ Don't hesitate to [give your feedback](http://wordpress.org/support/view/plugin-
|
|
123 |
* Fix a conflict with the plugin Custom Permalinks #143
|
124 |
* Fix menu location unexpectedly unset
|
125 |
|
126 |
-
= 2.1.6 (2017-07-17) =
|
127 |
-
|
128 |
-
* Pro: fix duplicate post button not working in PHP 7.1
|
129 |
-
* Pro: fix CPTUI untranslated labels on admin
|
130 |
-
* Adapt related posts filter to use slug instead of name to follow changes made on Jetpack server ( Props Steve Kaeser )
|
131 |
-
* Fix PHP notices when translating CPT and custom tax titles in Yoast SEO
|
132 |
-
* Fix PHP warning when all plugins are networked activated
|
133 |
-
|
134 |
-
= 2.1.5 (2017-05-31) =
|
135 |
-
|
136 |
-
* Add compatibility with new media widgets introduced in WP 4.8
|
137 |
-
* Removing the language information in URL for the default language is now default
|
138 |
-
* Update plugin updater class to 1.6.12
|
139 |
-
* Pro: fix PHP notices when duplicating the content
|
140 |
-
* Fix: test existence of `twentyseventeen_panel_count` instead of relying only on the active template
|
141 |
-
* Fix: set current property to false when removing the current-menu-item class #134 props @mowar
|
142 |
-
* Fix PHP notice when editing a term without language
|
143 |
-
* Fix possible PHP notice when deleting a category
|
144 |
-
* Fix fatal error with Gantry 5
|
145 |
-
|
146 |
-
= 2.1.4 (2017-05-16) =
|
147 |
-
|
148 |
-
* Pro: fix user not logged in on secondary domain when previewing changes
|
149 |
-
* Pro: fix archive links without language code in ACF link field (ACF 5.4.0+)
|
150 |
-
* Fix redirection from www subdomain to wrong language domain.
|
151 |
-
* Fix: selecting "Front page displays latest posts" in the customizer not cleaning the languages cache
|
152 |
-
* Fix accessibility of the admin language switcher
|
153 |
-
|
154 |
-
= 2.1.3 (2017-04-11) =
|
155 |
-
|
156 |
-
* Pro: Fix translated slug of 'page' if it is translated to an empty string
|
157 |
-
* Update plugin updater class to 1.6.11
|
158 |
-
* Strings registered with a wpml-config.xml file or WPML functions are now multiline by default
|
159 |
-
* Translate the site title in emails sent to the user
|
160 |
-
* Fix sanitize_user for specific locales
|
161 |
-
* Fix deprecation notice in Yoast SEO integration
|
162 |
-
* Fix: Clean term cache after the language has been set in mass #119
|
163 |
-
|
164 |
-
= 2.1.2 (2017-03-09) =
|
165 |
-
|
166 |
-
* Pro: Add filter 'pll_xdata_nonce_life'
|
167 |
-
* Pro: Fix translation of WooCommerce product attribute slug
|
168 |
-
* Pro: Fix product synchronization in WooCommerce 2.7
|
169 |
-
* Pro: Fix error message when bulk trashing synchronized posts
|
170 |
-
* Add option to discard item spacing in the output of pll_the_languages() ( Props Ceslav Przywara ) #93 #95
|
171 |
-
* Add as, dzo, kab, km, ml_IN, nl_BE, pa_IN, rhg, sah, ta_IN, tah, te, tt_RU to the predefined list of languages
|
172 |
-
* Update plugin updater class to 1.6.10
|
173 |
-
* Fix: Remove the dependency to is_ssl() to detect the language in the url ( language set from the directory name )
|
174 |
-
* Fix issue with secondary level domains
|
175 |
-
* Fix strings not translated in emails
|
176 |
-
* Fix incorrect usage of add_action() ( Props Peter J. Herrel ) #103
|
177 |
-
* Fix wrong redirect in customizer in WP 4.7
|
178 |
-
|
179 |
-
= 2.1.1 (2017-02-15) =
|
180 |
-
|
181 |
-
* Pro: Add filter 'pll_enable_duplicate_media' for a fine control of automatic media duplication
|
182 |
-
* Add filter 'pll_links_model' for the links model class name
|
183 |
-
* Trim any starting ^ from modified rewrite rules
|
184 |
-
* Pro: Fix wrong count of plugins to udpate
|
185 |
-
* Fix slashed strings translations not saved #94
|
186 |
-
|
187 |
-
= 2.1 (2017-01-25) =
|
188 |
-
|
189 |
-
* Minimum WordPress version is now 4.4
|
190 |
-
* Pro: Add support for synchronized posts (same post in multiple languages)
|
191 |
-
* Pro: Add support for custom post type UI and the Divi Builder
|
192 |
-
* Improve support of Yoast SEO (no category base and post type archive breadcrumb title)
|
193 |
-
* Move Languages menu at top level instead of submenu of the WordPress settings
|
194 |
-
* Copy the original post date when creating a translation and when the date is synchronized (Props Jory Hogeveen) #32
|
195 |
-
* Remove hreflang attributes on paged pages and paged posts
|
196 |
-
* Add label to widget language dropdown for better accessibility (Props Lawrence Francell) #53 #56
|
197 |
-
* Remove constants POLYLANG_URL and PLL_LOCAL_URL
|
198 |
-
* wp_get_sidebars_widgets() and is_active_sidebar() are now filtered according to widgets languages #54
|
199 |
-
* Add functions pll_esc_html__(), pll_esc_html_e(), pll_esc_attr__() and pll_esc_attr_e() to the API (Props jegbagus) #83
|
200 |
-
* Pro: Fix conflict between WooCommerce shop on front and translated shop base slug
|
201 |
-
* Pro: Fix $wp_rewrite search base and author_base not translated #68
|
202 |
-
* Pro: Fix page preview does not log in the user when using sudomains
|
203 |
-
* Fix: avoid setting the language cookie on 404 pages
|
204 |
-
* Fix: rewrite rules order modified for custom post types archives
|
205 |
-
* Fix: conflict with WP All Import causing our filters to fail in "Add Media" modal when editing a post
|
206 |
-
* Fix: auto add pages not working for nav menus assigned to several locations
|
207 |
-
* Fix: Jetpack infinite scroll for multiple domains #58 #74
|
208 |
-
* Fix: serialize error in Strings translations when balanceTags option is active #63
|
209 |
-
* Fix: static front page preview when redirected from the languages page #49
|
210 |
-
* Fix: Auto add pages not working for nav menus assigned to several locations
|
211 |
-
* Fix: Conflict with Woocommerce Show Single Variation
|
212 |
-
* Fix: Parent page not synchronized in Quick edit (introduced in 2.0.8)
|
213 |
-
* Fix: WPML API wpml_element_has_translations and wpml_post_language_details
|
214 |
-
* Fix: unattached media translations not in language switcher
|
215 |
-
* Fix: Conflict with WP Residence advanced search
|
216 |
-
|
217 |
See [changelog.txt](https://plugins.svn.wordpress.org/polylang/trunk/changelog.txt) for older changelog
|
4 |
Tags: multilingual, bilingual, translate, translation, language, multilanguage, international, localization
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 2.2.2
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Making WordPress multilingual
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= 2.2.2 (2017-09-22) =
|
80 |
+
|
81 |
+
* Pro: Fix Duplicate post button not working when the user meta has been corrupted
|
82 |
+
* Fix PHP notice with the plugin Members #175
|
83 |
+
* Fix page template select displayed when editing a translated page for posts
|
84 |
+
* Fix incompatibility with WP 4.8.2 (placeholder %1$s in prepare)
|
85 |
+
|
86 |
= 2.2.1 (2017-08-30) =
|
87 |
|
88 |
* Pro: partially refactor REST API classes
|
130 |
* Fix a conflict with the plugin Custom Permalinks #143
|
131 |
* Fix menu location unexpectedly unset
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
See [changelog.txt](https://plugins.svn.wordpress.org/polylang/trunk/changelog.txt) for older changelog
|