Polylang - Version 1.7.1

Version Description

(2015-03-20) =

  • fix: wrong redirection when using a static front page and replacing the page name by the language code (introduced in 1.7)
Download this release

Release Info

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

Code changes from version 1.7 to 1.7.1

Files changed (3) hide show
  1. frontend/frontend-links.php +4 -0
  2. polylang.php +2 -2
  3. readme.txt +5 -1
frontend/frontend-links.php CHANGED
@@ -470,6 +470,10 @@ class PLL_Frontend_Links extends PLL_Links {
470
  if (isset($_POST['wp_customize'], $_POST['customized']))
471
  return;
472
 
 
 
 
 
473
  if (empty($requested_url))
474
  $requested_url = (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
475
 
470
  if (isset($_POST['wp_customize'], $_POST['customized']))
471
  return;
472
 
473
+ // don't redirect if we are on a static front page
474
+ if ($this->options['redirect_lang'] && isset($this->curlang->page_on_front) && is_page($this->curlang->page_on_front))
475
+ return;
476
+
477
  if (empty($requested_url))
478
  $requested_url = (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
479
 
polylang.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Polylang
4
  Plugin URI: http://polylang.wordpress.com/
5
- Version: 1.7
6
  Author: Frédéric Demarle
7
  Description: Adds multilingual capability to WordPress
8
  Text Domain: polylang
@@ -33,7 +33,7 @@ Domain Path: /languages
33
  if (!function_exists('add_action'))
34
  exit();
35
 
36
- define('POLYLANG_VERSION', '1.7');
37
  define('PLL_MIN_WP_VERSION', '3.8');
38
 
39
  define('POLYLANG_BASENAME', plugin_basename(__FILE__)); // plugin name as known by WP
2
  /*
3
  Plugin Name: Polylang
4
  Plugin URI: http://polylang.wordpress.com/
5
+ Version: 1.7.1
6
  Author: Frédéric Demarle
7
  Description: Adds multilingual capability to WordPress
8
  Text Domain: polylang
33
  if (!function_exists('add_action'))
34
  exit();
35
 
36
+ define('POLYLANG_VERSION', '1.7.1');
37
  define('PLL_MIN_WP_VERSION', '3.8');
38
 
39
  define('POLYLANG_BASENAME', plugin_basename(__FILE__)); // plugin name as known by WP
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: multilingual, bilingual, translate, translation, language, multilanguage, international, localization
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
- Stable tag: 1.7
8
  License: GPLv2 or later
9
 
10
  Polylang adds multilingual content management support to WordPress.
@@ -67,6 +67,10 @@ See http://polylang.wordpress.com/documentation/contribute/
67
 
68
  == Changelog ==
69
 
 
 
 
 
70
  = 1.7 (2015-03-19) =
71
 
72
  * Minimum WordPress version is now v3.8
4
  Tags: multilingual, bilingual, translate, translation, language, multilanguage, international, localization
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
+ Stable tag: 1.7.1
8
  License: GPLv2 or later
9
 
10
  Polylang adds multilingual content management support to WordPress.
67
 
68
  == Changelog ==
69
 
70
+ = 1.7.1 (2015-03-20) =
71
+
72
+ * fix: wrong redirection when using a static front page and replacing the page name by the language code (introduced in 1.7)
73
+
74
  = 1.7 (2015-03-19) =
75
 
76
  * Minimum WordPress version is now v3.8