Polylang - Version 3.0.4

Version Description

(2021-04-27) =

  • Improve performance in the pages (or hierarchical post types) list table
  • Fix an ajax conflict with WooCommerce License manager
Download this release

Release Info

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

Code changes from version 3.0.3 to 3.0.4

admin/admin-base.php CHANGED
@@ -310,7 +310,7 @@ abstract class PLL_Admin_Base extends PLL_Base {
310
  addPolylangParametersAsString();
311
  } else {
312
  // Otherwise options.data is probably an object.
313
- options.data = Object.assign( options.data, <?php echo $arr; // phpcs:ignore WordPress.Security.EscapeOutput ?> );
314
  }
315
  }
316
  }
310
  addPolylangParametersAsString();
311
  } else {
312
  // Otherwise options.data is probably an object.
313
+ options.data = Object.assign( options.data || {} , <?php echo $arr; // phpcs:ignore WordPress.Security.EscapeOutput ?> );
314
  }
315
  }
316
  }
admin/admin-filters-post.php CHANGED
@@ -90,7 +90,8 @@ class PLL_Admin_Filters_Post extends PLL_Admin_Filters_Post_Base {
90
  // Hierarchical post types
91
  if ( 'edit' == $screen->base && is_post_type_hierarchical( $screen->post_type ) ) {
92
  $pages = get_pages( array( 'sort_column' => 'menu_order, post_title' ) ); // Same arguments as the parent pages dropdown to avoid an extra query.
93
- update_post_caches( $pages, $screen->post_type );
 
94
 
95
  $page_languages = array();
96
 
90
  // Hierarchical post types
91
  if ( 'edit' == $screen->base && is_post_type_hierarchical( $screen->post_type ) ) {
92
  $pages = get_pages( array( 'sort_column' => 'menu_order, post_title' ) ); // Same arguments as the parent pages dropdown to avoid an extra query.
93
+
94
+ update_post_caches( $pages, $screen->post_type, true, false );
95
 
96
  $page_languages = array();
97
 
changelog.txt CHANGED
@@ -2,6 +2,38 @@
2
 
3
  This file contains only old changelog. See readme.txt for newer versions.
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  = 2.8.4 (2020-11-03) =
6
 
7
  * Pro: Remove useless bulk translate action for ACF fields groups
2
 
3
  This file contains only old changelog. See readme.txt for newer versions.
4
 
5
+ = 2.9.2 (2021-02-02) =
6
+
7
+ * Pro: Fix translation of CPTUI plural label and description not working
8
+ * Add Spanish (Ecuador) to the list of predefined languages
9
+ * Fix typo in "WordPress" string translation group. Props Viktor Szépe #682
10
+
11
+ = 2.9.1 (2020-12-15) =
12
+
13
+ * Fix PHP notice: Undefined property: PLL_Cache_Compat::$options with cache plugins. Props bahaa-almahamid. #658
14
+ * Fix title of the search results page with Yoast SEO > 14.0
15
+
16
+ = 2.9 (2020-12-07) =
17
+
18
+ * Add compatibility with WordPress 5.6
19
+ * Pro: Add locale fallback used when the theme or plugins translations are not available
20
+ * Pro: Fix SSO and browser preferred language redirect when using multiple domains
21
+ * Pro: Fix post slugs for German and Danish in the REST API
22
+ * Pro: Fix a fatal error in ACF integration when saving url modifications with multiple domains
23
+ * Pro: Fix a deprecated notice fired by ACF since the version 5.9.2
24
+ * Pro: Fix ACF relationship fields not reloaded when changing the language in the classic editor
25
+ * Update plugin updater to version 1.8
26
+ * Add Lower Sorbian to the list of predefined language
27
+ * Options are now translated on backend when using the admin language filter
28
+ * Keep previous translations when modifying an option value
29
+ * Add navigation markup to the language switcher widget
30
+ * Fix canonical redirect for taxonomy terms
31
+ * Fix a fatal error when deleting a post with a translation group corrupted in the database
32
+ * Fix a fatal error when switching to plain permalinks and using multiple domains
33
+ * Fix a conflict with WP Sweep which could corrupt languages
34
+ * Fix title displayed instead of meta description with Yoast SEO > 14.0
35
+ * Fix PHP Notice: Undefined index: wp_the_query in /frontend/choose-lang-content.php on line 92
36
+
37
  = 2.8.4 (2020-11-03) =
38
 
39
  * Pro: Remove useless bulk translate action for ACF fields groups
polylang.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: Polylang
11
  * Plugin URI: https://polylang.pro
12
  * Description: Adds multilingual capability to WordPress
13
- * Version: 3.0.3
14
  * Requires at least: 5.1
15
  * Requires PHP: 5.6
16
  * Author: WP SYNTEX
@@ -53,7 +53,7 @@ if ( defined( 'POLYLANG_VERSION' ) ) {
53
  }
54
  } else {
55
  // Go on loading the plugin
56
- define( 'POLYLANG_VERSION', '3.0.3' );
57
  define( 'PLL_MIN_WP_VERSION', '5.1' );
58
  define( 'PLL_MIN_PHP_VERSION', '5.6' );
59
 
10
  * Plugin Name: Polylang
11
  * Plugin URI: https://polylang.pro
12
  * Description: Adds multilingual capability to WordPress
13
+ * Version: 3.0.4
14
  * Requires at least: 5.1
15
  * Requires PHP: 5.6
16
  * Author: WP SYNTEX
53
  }
54
  } else {
55
  // Go on loading the plugin
56
+ define( 'POLYLANG_VERSION', '3.0.4' );
57
  define( 'PLL_MIN_WP_VERSION', '5.1' );
58
  define( 'PLL_MIN_PHP_VERSION', '5.6' );
59
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: multilingual, bilingual, translate, translation, language, multilanguage,
5
  Requires at least: 5.1
6
  Tested up to: 5.7
7
  Requires PHP: 5.6
8
- Stable tag: 3.0.3
9
  License: GPLv3 or later
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -78,6 +78,11 @@ Don't hesitate to [give your feedback](http://wordpress.org/support/view/plugin-
78
 
79
  == Changelog ==
80
 
 
 
 
 
 
81
  = 3.0.3 (2021-03-23) =
82
 
83
  * Fix a warning when a language is corrupted in database (term_language missing)
@@ -133,36 +138,4 @@ Don't hesitate to [give your feedback](http://wordpress.org/support/view/plugin-
133
  * Fix post type archive title and metadesc not translated in Yoast SEO
134
  * Fix PHP notice in REST API
135
 
136
- = 2.9.2 (2021-02-02) =
137
-
138
- * Pro: Fix translation of CPTUI plural label and description not working
139
- * Add Spanish (Ecuador) to the list of predefined languages
140
- * Fix typo in "WordPress" string translation group. Props Viktor Szépe #682
141
-
142
- = 2.9.1 (2020-12-15) =
143
-
144
- * Fix PHP notice: Undefined property: PLL_Cache_Compat::$options with cache plugins. Props bahaa-almahamid. #658
145
- * Fix title of the search results page with Yoast SEO > 14.0
146
-
147
- = 2.9 (2020-12-07) =
148
-
149
- * Add compatibility with WordPress 5.6
150
- * Pro: Add locale fallback used when the theme or plugins translations are not available
151
- * Pro: Fix SSO and browser preferred language redirect when using multiple domains
152
- * Pro: Fix post slugs for German and Danish in the REST API
153
- * Pro: Fix a fatal error in ACF integration when saving url modifications with multiple domains
154
- * Pro: Fix a deprecated notice fired by ACF since the version 5.9.2
155
- * Pro: Fix ACF relationship fields not reloaded when changing the language in the classic editor
156
- * Update plugin updater to version 1.8
157
- * Add Lower Sorbian to the list of predefined language
158
- * Options are now translated on backend when using the admin language filter
159
- * Keep previous translations when modifying an option value
160
- * Add navigation markup to the language switcher widget
161
- * Fix canonical redirect for taxonomy terms
162
- * Fix a fatal error when deleting a post with a translation group corrupted in the database
163
- * Fix a fatal error when switching to plain permalinks and using multiple domains
164
- * Fix a conflict with WP Sweep which could corrupt languages
165
- * Fix title displayed instead of meta description with Yoast SEO > 14.0
166
- * Fix PHP Notice: Undefined index: wp_the_query in /frontend/choose-lang-content.php on line 92
167
-
168
  See [changelog.txt](https://plugins.svn.wordpress.org/polylang/trunk/changelog.txt) for older changelog
5
  Requires at least: 5.1
6
  Tested up to: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 3.0.4
9
  License: GPLv3 or later
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
78
 
79
  == Changelog ==
80
 
81
+ = 3.0.4 (2021-04-27) =
82
+
83
+ * Improve performance in the pages (or hierarchical post types) list table
84
+ * Fix an ajax conflict with WooCommerce License manager
85
+
86
  = 3.0.3 (2021-03-23) =
87
 
88
  * Fix a warning when a language is corrupted in database (term_language missing)
138
  * Fix post type archive title and metadesc not translated in Yoast SEO
139
  * Fix PHP notice in REST API
140
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  See [changelog.txt](https://plugins.svn.wordpress.org/polylang/trunk/changelog.txt) for older changelog
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit5ee0dd77da0f415ad9a86c8a505132ac::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit57e007bdf76a1fe336cb43b59389545b::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit5ee0dd77da0f415ad9a86c8a505132ac
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit5ee0dd77da0f415ad9a86c8a505132ac
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit5ee0dd77da0f415ad9a86c8a505132ac', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit5ee0dd77da0f415ad9a86c8a505132ac', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit5ee0dd77da0f415ad9a86c8a505132ac::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit57e007bdf76a1fe336cb43b59389545b
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit57e007bdf76a1fe336cb43b59389545b', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit57e007bdf76a1fe336cb43b59389545b', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit57e007bdf76a1fe336cb43b59389545b::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit5ee0dd77da0f415ad9a86c8a505132ac
8
  {
9
  public static $classMap = array (
10
  'PLL_AS3CF' => __DIR__ . '/../..' . '/integrations/wp-offload-media/as3cf.php',
@@ -131,7 +131,7 @@ class ComposerStaticInit5ee0dd77da0f415ad9a86c8a505132ac
131
  public static function getInitializer(ClassLoader $loader)
132
  {
133
  return \Closure::bind(function () use ($loader) {
134
- $loader->classMap = ComposerStaticInit5ee0dd77da0f415ad9a86c8a505132ac::$classMap;
135
 
136
  }, null, ClassLoader::class);
137
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit57e007bdf76a1fe336cb43b59389545b
8
  {
9
  public static $classMap = array (
10
  'PLL_AS3CF' => __DIR__ . '/../..' . '/integrations/wp-offload-media/as3cf.php',
131
  public static function getInitializer(ClassLoader $loader)
132
  {
133
  return \Closure::bind(function () use ($loader) {
134
+ $loader->classMap = ComposerStaticInit57e007bdf76a1fe336cb43b59389545b::$classMap;
135
 
136
  }, null, ClassLoader::class);
137
  }