Polylang - Version 3.2.6

Version Description

(2022-09-06) =

  • Pro: Fix a conflict with Kadence blocks
  • Pro: Fix a conflict with Flatsome builder
  • Fix media translation setting having no effect
Download this release

Release Info

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

Code changes from version 3.2.5 to 3.2.6

Files changed (3) hide show
  1. include/model.php +6 -4
  2. polylang.php +2 -2
  3. readme.txt +7 -1
include/model.php CHANGED
@@ -243,14 +243,16 @@ class PLL_Model {
243
  if ( false === $post_types = $this->cache->get( 'post_types' ) ) {
244
  $post_types = array( 'post' => 'post', 'page' => 'page', 'wp_block' => 'wp_block' );
245
 
246
- if ( ! empty( $this->options['media_support'] ) ) {
247
- $post_types['attachment'] = 'attachment';
248
- }
249
-
250
  if ( ! empty( $this->options['post_types'] ) && is_array( $this->options['post_types'] ) ) {
251
  $post_types = array_merge( $post_types, array_combine( $this->options['post_types'], $this->options['post_types'] ) );
252
  }
253
 
 
 
 
 
 
 
254
  /**
255
  * Filters the list of post types available for translation.
256
  * The default are post types which have the parameter ‘public’ set to true.
243
  if ( false === $post_types = $this->cache->get( 'post_types' ) ) {
244
  $post_types = array( 'post' => 'post', 'page' => 'page', 'wp_block' => 'wp_block' );
245
 
 
 
 
 
246
  if ( ! empty( $this->options['post_types'] ) && is_array( $this->options['post_types'] ) ) {
247
  $post_types = array_merge( $post_types, array_combine( $this->options['post_types'], $this->options['post_types'] ) );
248
  }
249
 
250
+ if ( empty( $this->options['media_support'] ) ) {
251
+ unset( $post_types['attachment'] ); // In case the post type attachment is stored in the option.
252
+ } else {
253
+ $post_types['attachment'] = 'attachment';
254
+ }
255
+
256
  /**
257
  * Filters the list of post types available for translation.
258
  * The default are post types which have the parameter ‘public’ set to true.
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.2.5
14
  * Requires at least: 5.6
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.2.5' );
57
  define( 'PLL_MIN_WP_VERSION', '5.6' );
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.2.6
14
  * Requires at least: 5.6
15
  * Requires PHP: 5.6
16
  * Author: WP SYNTEX
53
  }
54
  } else {
55
  // Go on loading the plugin
56
+ define( 'POLYLANG_VERSION', '3.2.6' );
57
  define( 'PLL_MIN_WP_VERSION', '5.6' );
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.6
6
  Tested up to: 6.0
7
  Requires PHP: 5.6
8
- Stable tag: 3.2.5
9
  License: GPLv3 or later
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -103,6 +103,12 @@ Wherever third party code has been used, credit has been given in the code’s c
103
 
104
  == Changelog ==
105
 
 
 
 
 
 
 
106
  = 3.2.5 (2022-06-28) =
107
 
108
  * Pro: Fix creation of WC product categories with shared slug via REST API
5
  Requires at least: 5.6
6
  Tested up to: 6.0
7
  Requires PHP: 5.6
8
+ Stable tag: 3.2.6
9
  License: GPLv3 or later
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
103
 
104
  == Changelog ==
105
 
106
+ = 3.2.6 (2022-09-06) =
107
+
108
+ * Pro: Fix a conflict with Kadence blocks
109
+ * Pro: Fix a conflict with Flatsome builder
110
+ * Fix media translation setting having no effect
111
+
112
  = 3.2.5 (2022-06-28) =
113
 
114
  * Pro: Fix creation of WC product categories with shared slug via REST API