Version Description
(2019-07-16) =
- Pro: Fix slow admin in case the translations update server can't be reached
- Pro: Fix value not correctly translated for ACF clone fields in repeater
- Fix strings translations mixed when registered via the WPML compatibility. #381
Download this release
Release Info
Developer | Chouby |
Plugin | Polylang |
Version | 2.6.2 |
Comparing to | |
See all releases |
Code changes from version 2.6.1 to 2.6.2
- changelog.txt +71 -0
- include/translated-post.php +4 -0
- install/t15s.php +9 -8
- polylang.php +2 -2
- readme.txt +7 -71
- settings/table-string.php +1 -1
changelog.txt
CHANGED
@@ -2,6 +2,77 @@
|
|
2 |
|
3 |
This file contains only old changelog. See readme.txt for newer versions.
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
= 2.3.11 (2018-10-03) =
|
6 |
|
7 |
* Pro: Add action 'pll_created_sync_post'
|
2 |
|
3 |
This file contains only old changelog. See readme.txt for newer versions.
|
4 |
|
5 |
+
|
6 |
+
= 2.5.4 (2019-05-28) =
|
7 |
+
|
8 |
+
* Add Kannada to the predefined languages list
|
9 |
+
* Yoast SEO: Fix primary product cat not copied or synchronized
|
10 |
+
* WPMU Domain Mapping: Fix incorrect domain used for the theme
|
11 |
+
* Fix style-rtl.css not loaded when the language is set from the content #356
|
12 |
+
* Fix Jetpack featured pages not working. Props Anis Ladram. #357
|
13 |
+
* Fix Call to undefined function wp_generate_attachment_metadata()
|
14 |
+
|
15 |
+
= 2.5.3 (2019-04-16) =
|
16 |
+
|
17 |
+
* Add de_AT and pt_AO to the predefined languages list
|
18 |
+
* Pro: Add filter pll_translate_blocks
|
19 |
+
* Pro: fix PHP notice when the queried post type has been modified to an array
|
20 |
+
* Pro: fix PHP warning when combined with The Event Calendar and Page builder by SiteOrigin
|
21 |
+
|
22 |
+
= 2.5.2 (2019-02-12) =
|
23 |
+
|
24 |
+
* Pro: Fix translated slugs not accepting forward slashes
|
25 |
+
* Pro: Fix fatal error with ACF Pro 5.7.11
|
26 |
+
* Fix parent categories incorrectly synchronized #327
|
27 |
+
|
28 |
+
= 2.5.1 (2019-01-16) =
|
29 |
+
|
30 |
+
* Security: Fix categories and media duplication not protected from CSRF
|
31 |
+
* Pro: Allow to update the plugin with WP CLI
|
32 |
+
* Pro: Fix search in the button block not filtered in the correct language (needs WP 5.1)
|
33 |
+
* Add Saraiki to the predefined languages list
|
34 |
+
* Fix a conflict causing a blank page with Divi
|
35 |
+
|
36 |
+
= 2.5 (2018-12-06) =
|
37 |
+
|
38 |
+
* Add compatibility with WP 5.0
|
39 |
+
* Fix custom flags when the WP content folder is not in the WP install folder
|
40 |
+
* Fix PHP notice if a language has no flag
|
41 |
+
|
42 |
+
= 2.4.1 (2018-11-27) =
|
43 |
+
|
44 |
+
* Pro: Add compatibility with REST API changes made in WP 5.0
|
45 |
+
* Pro: Fix sticky posts in the REST API
|
46 |
+
* Pro: Fix overwritten custom post slug when the post is updated with the REST API
|
47 |
+
* Pro: Fix bulk translate for media
|
48 |
+
* Fix a conflict with Custom sidebars and Content aware sidebars
|
49 |
+
* Fix a conflict with the theme Pokemania
|
50 |
+
* Fix PHP notices when using the function 'icl_link_to_element' for terms
|
51 |
+
* Fix title slugs for posts written in German
|
52 |
+
|
53 |
+
= 2.4 (2018-11-12) =
|
54 |
+
|
55 |
+
* Minimum WordPress version is now 4.7
|
56 |
+
* Pro: Add the possibility to bulk duplicate or bulk synchronize posts.
|
57 |
+
* Pro: Add compatibility with Admin Columns
|
58 |
+
* Pro: Add synchronized posts to the REST API
|
59 |
+
* Pro: Fix variations messed when changing WooCommerce attributes slugs
|
60 |
+
* Pro: Fix incorrect language for ajax requests made on front by The Events Calendar
|
61 |
+
* Pro: Fix term not duplicated correctly when the language is set from the content
|
62 |
+
* Refactor the core to activate on front and for the REST api actions that were previously available only in the backend (language checks, synchronizations...).
|
63 |
+
* Add flags to widgets displayed in only one language (Props Jory Hogeveen) #257
|
64 |
+
* Honor the filter 'pll_the_language_args' for all options in menus #237
|
65 |
+
* Add better filters for default flags and custom flags
|
66 |
+
* Custom flags can now be stored in the polylang directory in the theme
|
67 |
+
* Custom flags can now use SVG
|
68 |
+
* Add compatibility with Jetpack featured content module
|
69 |
+
* Fix Twenty Fourteen featured posts possibly not filtered per language
|
70 |
+
* Fix home url not working with WordPress MU Domain mapping
|
71 |
+
* Fix Assigning a parent category breaking the hierarchy of translated category
|
72 |
+
* Fix: Accept 0,1 and 1.0 as q factors in browser preferred language detection (Props Dominic Rubas)
|
73 |
+
* Fix performance issue when using hundreds of widgets
|
74 |
+
* Fix translations possibly wrong if the post language is changed without saving the post after
|
75 |
+
|
76 |
= 2.3.11 (2018-10-03) =
|
77 |
|
78 |
* Pro: Add action 'pll_created_sync_post'
|
include/translated-post.php
CHANGED
@@ -160,6 +160,10 @@ class PLL_Translated_Post extends PLL_Translated_Object {
|
|
160 |
public function current_user_can_read( $post_id, $context = 'view' ) {
|
161 |
$post = get_post( $post_id );
|
162 |
|
|
|
|
|
|
|
|
|
163 |
if ( 'inherit' === $post->post_status && $post->post_parent ) {
|
164 |
$post = get_post( $post->post_parent );
|
165 |
}
|
160 |
public function current_user_can_read( $post_id, $context = 'view' ) {
|
161 |
$post = get_post( $post_id );
|
162 |
|
163 |
+
if ( empty( $post ) ) {
|
164 |
+
return false;
|
165 |
+
}
|
166 |
+
|
167 |
if ( 'inherit' === $post->post_status && $post->post_parent ) {
|
168 |
$post = get_post( $post->post_parent );
|
169 |
}
|
install/t15s.php
CHANGED
@@ -154,16 +154,17 @@ class PLL_T15S {
|
|
154 |
return $translations->{$slug};
|
155 |
}
|
156 |
|
157 |
-
$result = json_decode( wp_remote_retrieve_body( wp_remote_get( $url, array( 'timeout' =>
|
158 |
-
if ( is_array( $result ) ) {
|
159 |
-
$translations->{$slug} = $result;
|
160 |
-
$translations->_last_checked = time();
|
161 |
|
162 |
-
|
163 |
-
|
|
|
164 |
}
|
165 |
|
166 |
-
|
167 |
-
|
|
|
|
|
|
|
168 |
}
|
169 |
}
|
154 |
return $translations->{$slug};
|
155 |
}
|
156 |
|
157 |
+
$result = json_decode( wp_remote_retrieve_body( wp_remote_get( $url, array( 'timeout' => 3 ) ) ), true );
|
|
|
|
|
|
|
158 |
|
159 |
+
// Nothing found.
|
160 |
+
if ( ! is_array( $result ) ) {
|
161 |
+
$result = array();
|
162 |
}
|
163 |
|
164 |
+
$translations->{$slug} = $result;
|
165 |
+
$translations->_last_checked = time();
|
166 |
+
|
167 |
+
set_site_transient( self::TRANSIENT_KEY_PLUGIN, $translations );
|
168 |
+
return $result;
|
169 |
}
|
170 |
}
|
polylang.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
Plugin Name: Polylang
|
5 |
Plugin URI: https://polylang.pro
|
6 |
-
Version: 2.6.
|
7 |
Author: WP SYNTEX
|
8 |
Author uri: https://polylang.pro
|
9 |
Description: Adds multilingual capability to WordPress
|
@@ -51,7 +51,7 @@ if ( defined( 'POLYLANG_BASENAME' ) ) {
|
|
51 |
}
|
52 |
} else {
|
53 |
// Go on loading the plugin
|
54 |
-
define( 'POLYLANG_VERSION', '2.6.
|
55 |
define( 'PLL_MIN_WP_VERSION', '4.7' );
|
56 |
|
57 |
define( 'POLYLANG_FILE', __FILE__ ); // this file
|
3 |
/**
|
4 |
Plugin Name: Polylang
|
5 |
Plugin URI: https://polylang.pro
|
6 |
+
Version: 2.6.2
|
7 |
Author: WP SYNTEX
|
8 |
Author uri: https://polylang.pro
|
9 |
Description: Adds multilingual capability to WordPress
|
51 |
}
|
52 |
} else {
|
53 |
// Go on loading the plugin
|
54 |
+
define( 'POLYLANG_VERSION', '2.6.2' );
|
55 |
define( 'PLL_MIN_WP_VERSION', '4.7' );
|
56 |
|
57 |
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.7
|
6 |
Tested up to: 5.2
|
7 |
-
Stable tag: 2.6.
|
8 |
License: GPLv3 or later
|
9 |
|
10 |
Making WordPress multilingual
|
@@ -76,6 +76,12 @@ Don't hesitate to [give your feedback](http://wordpress.org/support/view/plugin-
|
|
76 |
|
77 |
== Changelog ==
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
= 2.6.1 (2019-07-03) =
|
80 |
|
81 |
* Pro: Fix Yoast SEO sitemap for inactive languages when using subdomains or multiple domains
|
@@ -119,74 +125,4 @@ Don't hesitate to [give your feedback](http://wordpress.org/support/view/plugin-
|
|
119 |
* Fix a conflict with Pods in the block editor. Props Jory Hogeveen. #369
|
120 |
* Fix fatal error with Twenty Fourteen introduced in version 2.5.4. #374
|
121 |
|
122 |
-
= 2.5.4 (2019-05-28) =
|
123 |
-
|
124 |
-
* Add Kannada to the predefined languages list
|
125 |
-
* Yoast SEO: Fix primary product cat not copied or synchronized
|
126 |
-
* WPMU Domain Mapping: Fix incorrect domain used for the theme
|
127 |
-
* Fix style-rtl.css not loaded when the language is set from the content #356
|
128 |
-
* Fix Jetpack featured pages not working. Props Anis Ladram. #357
|
129 |
-
* Fix Call to undefined function wp_generate_attachment_metadata()
|
130 |
-
|
131 |
-
= 2.5.3 (2019-04-16) =
|
132 |
-
|
133 |
-
* Add de_AT and pt_AO to the predefined languages list
|
134 |
-
* Pro: Add filter pll_translate_blocks
|
135 |
-
* Pro: fix PHP notice when the queried post type has been modified to an array
|
136 |
-
* Pro: fix PHP warning when combined with The Event Calendar and Page builder by SiteOrigin
|
137 |
-
|
138 |
-
= 2.5.2 (2019-02-12) =
|
139 |
-
|
140 |
-
* Pro: Fix translated slugs not accepting forward slashes
|
141 |
-
* Pro: Fix fatal error with ACF Pro 5.7.11
|
142 |
-
* Fix parent categories incorrectly synchronized #327
|
143 |
-
|
144 |
-
= 2.5.1 (2019-01-16) =
|
145 |
-
|
146 |
-
* Security: Fix categories and media duplication not protected from CSRF
|
147 |
-
* Pro: Allow to update the plugin with WP CLI
|
148 |
-
* Pro: Fix search in the button block not filtered in the correct language (needs WP 5.1)
|
149 |
-
* Add Saraiki to the predefined languages list
|
150 |
-
* Fix a conflict causing a blank page with Divi
|
151 |
-
|
152 |
-
= 2.5 (2018-12-06) =
|
153 |
-
|
154 |
-
* Add compatibility with WP 5.0
|
155 |
-
* Fix custom flags when the WP content folder is not in the WP install folder
|
156 |
-
* Fix PHP notice if a language has no flag
|
157 |
-
|
158 |
-
= 2.4.1 (2018-11-27) =
|
159 |
-
|
160 |
-
* Pro: Add compatibility with REST API changes made in WP 5.0
|
161 |
-
* Pro: Fix sticky posts in the REST API
|
162 |
-
* Pro: Fix overwritten custom post slug when the post is updated with the REST API
|
163 |
-
* Pro: Fix bulk translate for media
|
164 |
-
* Fix a conflict with Custom sidebars and Content aware sidebars
|
165 |
-
* Fix a conflict with the theme Pokemania
|
166 |
-
* Fix PHP notices when using the function 'icl_link_to_element' for terms
|
167 |
-
* Fix title slugs for posts written in German
|
168 |
-
|
169 |
-
= 2.4 (2018-11-12) =
|
170 |
-
|
171 |
-
* Minimum WordPress version is now 4.7
|
172 |
-
* Pro: Add the possibility to bulk duplicate or bulk synchronize posts.
|
173 |
-
* Pro: Add compatibility with Admin Columns
|
174 |
-
* Pro: Add synchronized posts to the REST API
|
175 |
-
* Pro: Fix variations messed when changing WooCommerce attributes slugs
|
176 |
-
* Pro: Fix incorrect language for ajax requests made on front by The Events Calendar
|
177 |
-
* Pro: Fix term not duplicated correctly when the language is set from the content
|
178 |
-
* Refactor the core to activate on front and for the REST api actions that were previously available only in the backend (language checks, synchronizations...).
|
179 |
-
* Add flags to widgets displayed in only one language (Props Jory Hogeveen) #257
|
180 |
-
* Honor the filter 'pll_the_language_args' for all options in menus #237
|
181 |
-
* Add better filters for default flags and custom flags
|
182 |
-
* Custom flags can now be stored in the polylang directory in the theme
|
183 |
-
* Custom flags can now use SVG
|
184 |
-
* Add compatibility with Jetpack featured content module
|
185 |
-
* Fix Twenty Fourteen featured posts possibly not filtered per language
|
186 |
-
* Fix home url not working with WordPress MU Domain mapping
|
187 |
-
* Fix Assigning a parent category breaking the hierarchy of translated category
|
188 |
-
* Fix: Accept 0,1 and 1.0 as q factors in browser preferred language detection (Props Dominic Rubas)
|
189 |
-
* Fix performance issue when using hundreds of widgets
|
190 |
-
* Fix translations possibly wrong if the post language is changed without saving the post after
|
191 |
-
|
192 |
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.7
|
6 |
Tested up to: 5.2
|
7 |
+
Stable tag: 2.6.2
|
8 |
License: GPLv3 or later
|
9 |
|
10 |
Making WordPress multilingual
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= 2.6.2 (2019-07-16) =
|
80 |
+
|
81 |
+
* Pro: Fix slow admin in case the translations update server can't be reached
|
82 |
+
* Pro: Fix value not correctly translated for ACF clone fields in repeater
|
83 |
+
* Fix strings translations mixed when registered via the WPML compatibility. #381
|
84 |
+
|
85 |
= 2.6.1 (2019-07-03) =
|
86 |
|
87 |
* Pro: Fix Yoast SEO sitemap for inactive languages when using subdomains or multiple domains
|
125 |
* Fix a conflict with Pods in the block editor. Props Jory Hogeveen. #369
|
126 |
* Fix fatal error with Twenty Fourteen introduced in version 2.5.4. #374
|
127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
See [changelog.txt](https://plugins.svn.wordpress.org/polylang/trunk/changelog.txt) for older changelog
|
settings/table-string.php
CHANGED
@@ -250,7 +250,7 @@ class PLL_Table_String extends WP_List_Table {
|
|
250 |
$this->_column_headers = array( $this->get_columns(), array(), $this->get_sortable_columns() );
|
251 |
|
252 |
$total_items = count( $data );
|
253 |
-
$this->items = array_slice( $data, ( $this->get_pagenum() - 1 ) * $per_page, $per_page );
|
254 |
|
255 |
$this->set_pagination_args(
|
256 |
array(
|
250 |
$this->_column_headers = array( $this->get_columns(), array(), $this->get_sortable_columns() );
|
251 |
|
252 |
$total_items = count( $data );
|
253 |
+
$this->items = array_slice( $data, ( $this->get_pagenum() - 1 ) * $per_page, $per_page, true );
|
254 |
|
255 |
$this->set_pagination_args(
|
256 |
array(
|