Polylang - Version 2.3.11

Version Description

(2018-10-03) =

  • Pro: Add action 'pll_created_sync_post'
  • Pro: Fix language and translations not included for tags in the REST API
  • Fix Assigning a parent category breaking the hierarchy of translated category
Download this release

Release Info

Developer Chouby
Plugin Icon 128x128 Polylang
Version 2.3.11
Comparing to
See all releases

Code changes from version 2.3.10 to 2.3.11

frontend/choose-lang.php CHANGED
@@ -87,6 +87,7 @@ abstract class PLL_Choose_Lang {
87
 
88
  /**
89
  * Filter the Polylang cookie duration
 
90
  *
91
  * @since 1.8
92
  *
@@ -255,6 +256,7 @@ abstract class PLL_Choose_Lang {
255
  /**
256
  * When a visitor reaches the site home, Polylang redirects to the home page in the correct language.
257
  * This filter allows plugins to modify the redirected url or prevent this redirection
 
258
  *
259
  * @since 1.1.1
260
  *
87
 
88
  /**
89
  * Filter the Polylang cookie duration
90
+ * /!\ this filter may be fired *before* the theme is loaded
91
  *
92
  * @since 1.8
93
  *
256
  /**
257
  * When a visitor reaches the site home, Polylang redirects to the home page in the correct language.
258
  * This filter allows plugins to modify the redirected url or prevent this redirection
259
+ * /!\ this filter may be fired *before* the theme is loaded
260
  *
261
  * @since 1.1.1
262
  *
modules/sync/admin-sync.php CHANGED
@@ -193,9 +193,7 @@ class PLL_Admin_Sync {
193
  $term = get_term( $term_id );
194
 
195
  foreach ( $translations as $lang => $tr_id ) {
196
- if ( ! empty( $tr_id ) && $tr_id !== $term_id ) {
197
- $tr_parent = $this->model->term->get_translation( $term->parent, $lang );
198
-
199
  $wpdb->update(
200
  $wpdb->term_taxonomy,
201
  array( 'parent' => isset( $tr_parent ) ? $tr_parent : 0 ),
193
  $term = get_term( $term_id );
194
 
195
  foreach ( $translations as $lang => $tr_id ) {
196
+ if ( ! empty( $tr_id ) && $tr_id !== $term_id && $tr_parent = $this->model->term->get_translation( $term->parent, $lang ) ) {
 
 
197
  $wpdb->update(
198
  $wpdb->term_taxonomy,
199
  array( 'parent' => isset( $tr_parent ) ? $tr_parent : 0 ),
polylang.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  Plugin Name: Polylang
5
  Plugin URI: https://polylang.pro
6
- Version: 2.3.10
7
  Author: Frédéric Demarle
8
  Author uri: https://polylang.pro
9
  Description: Adds multilingual capability to WordPress
@@ -53,7 +53,7 @@ if ( defined( 'POLYLANG_BASENAME' ) ) {
53
  }
54
  } else {
55
  // Go on loading the plugin
56
- define( 'POLYLANG_VERSION', '2.3.10' );
57
  define( 'PLL_MIN_WP_VERSION', '4.4' );
58
 
59
  define( 'POLYLANG_FILE', __FILE__ ); // this file
3
  /**
4
  Plugin Name: Polylang
5
  Plugin URI: https://polylang.pro
6
+ Version: 2.3.11
7
  Author: Frédéric Demarle
8
  Author uri: https://polylang.pro
9
  Description: Adds multilingual capability to WordPress
53
  }
54
  } else {
55
  // Go on loading the plugin
56
+ define( 'POLYLANG_VERSION', '2.3.11' );
57
  define( 'PLL_MIN_WP_VERSION', '4.4' );
58
 
59
  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.9
7
- Stable tag: 2.3.10
8
  License: GPLv2 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.3.10 (2018-08-16) =
80
 
81
  * Fix Lingotek notice not dismissable
4
  Tags: multilingual, bilingual, translate, translation, language, multilanguage, international, localization
5
  Requires at least: 4.4
6
  Tested up to: 4.9
7
+ Stable tag: 2.3.11
8
  License: GPLv2 or later
9
 
10
  Making WordPress multilingual
76
 
77
  == Changelog ==
78
 
79
+ = 2.3.11 (2018-10-03) =
80
+
81
+ * Pro: Add action 'pll_created_sync_post'
82
+ * Pro: Fix language and translations not included for tags in the REST API
83
+ * Fix Assigning a parent category breaking the hierarchy of translated category
84
+
85
  = 2.3.10 (2018-08-16) =
86
 
87
  * Fix Lingotek notice not dismissable