WordPress.org

Plugin Directory

Changeset 619925


Ignore:
Timestamp:
11/01/12 17:38:08 (18 months ago)
Author:
Chouby
Message:

solve issue with POST variable on homepage

Location:
polylang/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • polylang/trunk/include/core.php

    r619846 r619925  
    373373        // test to avoid crash if get_home_url returns something wrong 
    374374        // FIXME why this happens? http://wordpress.org/support/topic/polylang-crashes-1 
     375        // don't redirect if $_POST is not empty as it could break other plugins 
    375376        // don't forget the query string which may be added by plugins even when permalinks are used 
    376         elseif (is_string($redirect = $this->get_home_url($this->curlang))) { 
     377        elseif (is_string($redirect = $this->get_home_url($this->curlang)) && empty($_POST)) { 
    377378            wp_redirect(!$query && $_SERVER['QUERY_STRING'] ? $redirect.'?'. $_SERVER['QUERY_STRING'] : $redirect); 
    378379            exit; 
  • polylang/trunk/polylang.php

    r619846 r619925  
    33Plugin Name: Polylang 
    44Plugin URI: http://wordpress.org/extend/plugins/polylang/ 
    5 Version: 0.9.4.4 
     5Version: 0.9.4.5 
    66Author: F. Demarle 
    77Description: Adds multilingual capability to Wordpress 
     
    2525*/ 
    2626 
    27 define('POLYLANG_VERSION', '0.9.4.4'); 
     27define('POLYLANG_VERSION', '0.9.4.5'); 
    2828define('PLL_MIN_WP_VERSION', '3.1'); 
    2929 
  • polylang/trunk/readme.txt

    r619846 r619925  
    100100* Bug correction: impossible to create terms with the same name in different languages 
    101101* Bug correction: query string added by other plugins is erased when adding the language code to all urls 
     102* Bug correction: redirect erase 'POST' variables on homepage when adding the language code to all urls 
    102103 
    103104= 0.9.4 (2012-10-23) = 
Note: See TracChangeset for help on using the changeset viewer.