Plugin Directory

Changeset 1465600


Ignore:
Timestamp:
08/02/2016 12:49:47 AM (10 years ago)
Author:
webilop
Message:

Release 1.6.8. See changelog for details

Location:
user-language-switch/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • user-language-switch/trunk/readme.txt

    r1404026 r1465600  
    88Requires at least: 4.0
    99Tested up to: 4.4
    10 Stable tag: 1.6.7
     10Stable tag: 1.6.8
    1111License: GPLv2 or later
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    173173* Allow change flag image
    174174* Add gray filter to flags when no have a translation
     175= 1.6.8 =
     176* Fix automatic redirection based on browser language.
    175177
    176178== Upgrade Notice ==
  • user-language-switch/trunk/user-language-switch.php

    r1404026 r1465600  
    33Plugin Name: User Language Switch
    44Description: Build a multilingual and SEO friendly website. Linking translations of content and allow visitors to browse your website in different languages.
    5 Version: 1.6.7
     5Version: 1.6.8
    66Author: webilop
    77Author URI: http://www.webilop.com
     
    300300          $redirectUrl = uls_get_url_translated($homeUrl, $language);
    301301        }
     302        //add the language to the URL
     303        else{
     304          $redirectUrl = uls_get_url_translated($url, $language);
     305        }
    302306
    303307        //check if it is the first redirection
    304308        if(!session_id()) session_start();
    305         if(empty($_SESSION['uls_home_redirection']) && empty($_COOKIE['uls_home_redirection'])){
     309        if($url != $redirectUrl && empty($_SESSION['uls_home_redirection']) && empty($_COOKIE['uls_home_redirection'])){
    306310          //save temporal vars to avoid redirection in the home page again
    307311          $time = date_format(new DateTime(), 'Y-m-d H:i');
Note: See TracChangeset for help on using the changeset viewer.