Version Description
(2016-12-12) =
- Pro: Fix shared term slugs broken by a late change in WP 4.7 #73
- Pro: Fix media taxonomies lost when creating a media translation when taxonomies sync is activated #72
- Fix fatal error in customizer when Twenty Seventen is activated and another theme is previewed #71
- Fix wrong plugin language on admin if user locale is different from site locale in WP 4.7
Download this release
Release Info
Developer | Chouby |
Plugin | Polylang |
Version | 2.0.11 |
Comparing to | |
See all releases |
Code changes from version 2.0.10 to 2.0.11
- include/class-polylang.php +3 -2
- modules/plugins/plugins-compat.php +2 -4
- polylang.php +2 -2
- readme.txt +8 -1
include/class-polylang.php
CHANGED
@@ -41,9 +41,10 @@ class Polylang {
|
|
41 |
// take no action before all plugins are loaded
|
42 |
add_action( 'plugins_loaded', array( $this, 'init' ), 1 );
|
43 |
|
44 |
-
// override load text domain waiting for the language to be defined
|
45 |
// here for plugins which load text domain as soon as loaded :(
|
46 |
-
|
|
|
47 |
PLL_OLT_Manager::instance();
|
48 |
}
|
49 |
|
41 |
// take no action before all plugins are loaded
|
42 |
add_action( 'plugins_loaded', array( $this, 'init' ), 1 );
|
43 |
|
44 |
+
// override load text domain waiting for the language to be defined (only on front since WP 4.7)
|
45 |
// here for plugins which load text domain as soon as loaded :(
|
46 |
+
// FIXME test get_user_locale for backward compatibility with WP < 4.7
|
47 |
+
if ( ( ! defined( 'PLL_OLT' ) || PLL_OLT ) && ! ( is_admin() && function_exists( 'get_user_locale' ) ) ) {
|
48 |
PLL_OLT_Manager::instance();
|
49 |
}
|
50 |
|
modules/plugins/plugins-compat.php
CHANGED
@@ -55,9 +55,7 @@ class PLL_Plugins_Compat {
|
|
55 |
add_filter( 'wp_sweep_excluded_taxonomies', array( $this, 'wp_sweep_excluded_taxonomies' ) );
|
56 |
|
57 |
// Twenty Seventeen
|
58 |
-
|
59 |
-
add_action( 'init', array( $this, 'twenty_seventeen_init' ) );
|
60 |
-
}
|
61 |
}
|
62 |
|
63 |
/**
|
@@ -619,7 +617,7 @@ class PLL_Plugins_Compat {
|
|
619 |
* @since 2.0.10
|
620 |
*/
|
621 |
public function twenty_seventeen_init() {
|
622 |
-
if ( did_action( 'pll_init' ) && PLL() instanceof PLL_Frontend ) {
|
623 |
$num_sections = twentyseventeen_panel_count();
|
624 |
for ( $i = 1; $i < ( 1 + $num_sections ); $i++ ) {
|
625 |
add_filter( 'theme_mod_panel_' . $i, 'pll_get_post' );
|
55 |
add_filter( 'wp_sweep_excluded_taxonomies', array( $this, 'wp_sweep_excluded_taxonomies' ) );
|
56 |
|
57 |
// Twenty Seventeen
|
58 |
+
add_action( 'init', array( $this, 'twenty_seventeen_init' ) );
|
|
|
|
|
59 |
}
|
60 |
|
61 |
/**
|
617 |
* @since 2.0.10
|
618 |
*/
|
619 |
public function twenty_seventeen_init() {
|
620 |
+
if ( 'twentyseventeen' === get_template() && did_action( 'pll_init' ) && PLL() instanceof PLL_Frontend ) {
|
621 |
$num_sections = twentyseventeen_panel_count();
|
622 |
for ( $i = 1; $i < ( 1 + $num_sections ); $i++ ) {
|
623 |
add_filter( 'theme_mod_panel_' . $i, 'pll_get_post' );
|
polylang.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: Polylang
|
5 |
Plugin URI: https://polylang.pro
|
6 |
-
Version: 2.0.
|
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.0.
|
39 |
define( 'PLL_MIN_WP_VERSION', '4.0' );
|
40 |
|
41 |
define( 'POLYLANG_FILE', __FILE__ ); // this file
|
3 |
/*
|
4 |
Plugin Name: Polylang
|
5 |
Plugin URI: https://polylang.pro
|
6 |
+
Version: 2.0.11
|
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.0.11' );
|
39 |
define( 'PLL_MIN_WP_VERSION', '4.0' );
|
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.0
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Making WordPress multilingual
|
@@ -77,6 +77,13 @@ Don't hesitate to [give your feedback](http://wordpress.org/support/view/plugin-
|
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
= 2.0.10 (2016-12-05) =
|
81 |
|
82 |
* Add support for front page panels of Twenty Seventeen
|
4 |
Tags: multilingual, bilingual, translate, translation, language, multilanguage, international, localization
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 2.0.11
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Making WordPress multilingual
|
77 |
|
78 |
== Changelog ==
|
79 |
|
80 |
+
= 2.0.11 (2016-12-12) =
|
81 |
+
|
82 |
+
* Pro: Fix shared term slugs broken by a late change in WP 4.7 #73
|
83 |
+
* Pro: Fix media taxonomies lost when creating a media translation when taxonomies sync is activated #72
|
84 |
+
* Fix fatal error in customizer when Twenty Seventen is activated and another theme is previewed #71
|
85 |
+
* Fix wrong plugin language on admin if user locale is different from site locale in WP 4.7
|
86 |
+
|
87 |
= 2.0.10 (2016-12-05) =
|
88 |
|
89 |
* Add support for front page panels of Twenty Seventeen
|