Polylang Connect for Elementor – Templates Translation & Language Switcher - Version 2.0.2

Version Description

Fixed fatal error if call home_url() before initialize Polylang.

Download this release

Release Info

Developer pacotole
Plugin Icon 128x128 Polylang Connect for Elementor – Templates Translation & Language Switcher
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: elementor, polylang, multilingual, language switcher, languages, templates
5
  Requires at least: 5.4
6
  Tested up to: 5.9
7
  Requires PHP: 5.6
8
- Stable tag: 2.0.1
9
  License: GPL-2.0-or-later
10
  License URI: https://opensource.org/licenses/GPL-2.0
11
 
@@ -202,6 +202,9 @@ There are quite a few:
202
 
203
  == Changelog ==
204
 
 
 
 
205
  = 2.0.1 =
206
  Fixed critical error loading plugin classes when there are uppercase letters in the path.
207
 
@@ -280,10 +283,7 @@ Fixed critical error loading plugin classes when there are uppercase letters in
280
 
281
  == Upgrade Notice ==
282
 
283
- = 2.0.1 =
284
- **Warning** breaking changes with v1. Language Switcher and Dynamic Tags has been renamed and neeed to re-added again in your templates.
285
-
286
- = 2.0.0 =
287
  **Warning** breaking changes with v1. Language Switcher and Dynamic Tags has been renamed and neeed to re-added again in your templates.
288
 
289
  = 1.0.2 =
5
  Requires at least: 5.4
6
  Tested up to: 5.9
7
  Requires PHP: 5.6
8
+ Stable tag: 2.0.2
9
  License: GPL-2.0-or-later
10
  License URI: https://opensource.org/licenses/GPL-2.0
11
 
202
 
203
  == Changelog ==
204
 
205
+ = 2.0.2 =
206
+ Fixed fatal error if call home_url() before initialize Polylang.
207
+
208
  = 2.0.1 =
209
  Fixed critical error loading plugin classes when there are uppercase letters in the path.
210
 
283
 
284
  == Upgrade Notice ==
285
 
286
+ = 2.0.2 =
 
 
 
287
  **Warning** breaking changes with v1. Language Switcher and Dynamic Tags has been renamed and neeed to re-added again in your templates.
288
 
289
  = 1.0.2 =
connect-polylang-elementor.php CHANGED
@@ -8,7 +8,7 @@
8
  * Plugin Name: Polylang Connect for Elementor
9
  * Plugin URI: https://github.com/creame/connect-polylang-elementor
10
  * Description: Connect Polylang with Elementor. Display templates in the correct language, language switcher widget, language visibility conditions and dynamic tags.
11
- * Version: 2.0.1
12
  * Author: Creame
13
  * Author URI: https://crea.me/
14
  * License: GPL-2.0-or-later
@@ -31,7 +31,7 @@ defined( 'ABSPATH' ) || exit;
31
  *
32
  * @since 2.0.0
33
  */
34
- define( 'CPEL_PLUGIN_VERSION', '2.0.1' );
35
  define( 'CPEL_FILE', __FILE__ );
36
  define( 'CPEL_DIR', plugin_dir_path( CPEL_FILE ) );
37
  define( 'CPEL_BASENAME', plugin_basename( CPEL_FILE ) );
8
  * Plugin Name: Polylang Connect for Elementor
9
  * Plugin URI: https://github.com/creame/connect-polylang-elementor
10
  * Description: Connect Polylang with Elementor. Display templates in the correct language, language switcher widget, language visibility conditions and dynamic tags.
11
+ * Version: 2.0.2
12
  * Author: Creame
13
  * Author URI: https://crea.me/
14
  * License: GPL-2.0-or-later
31
  *
32
  * @since 2.0.0
33
  */
34
+ define( 'CPEL_PLUGIN_VERSION', '2.0.2' );
35
  define( 'CPEL_FILE', __FILE__ );
36
  define( 'CPEL_DIR', plugin_dir_path( CPEL_FILE ) );
37
  define( 'CPEL_BASENAME', plugin_basename( CPEL_FILE ) );
includes/connect-plugins.php CHANGED
@@ -343,7 +343,7 @@ class ConnectPlugins {
343
  */
344
  function home_url_language_dir_slash( $url, $path ) {
345
 
346
- return empty( $path ) && 1 === PLL()->options['force_lang'] ? trailingslashit( $url ) : $url;
347
 
348
  }
349
 
343
  */
344
  function home_url_language_dir_slash( $url, $path ) {
345
 
346
+ return empty( $path ) && function_exists( 'PLL' ) && 1 === PLL()->options['force_lang'] ? trailingslashit( $url ) : $url;
347
 
348
  }
349