WordPress.org

Plugin Directory

Changeset 614216


Ignore:
Timestamp:
10/18/12 19:22:04 (18 months ago)
Author:
Chouby
Message:

interference between language filter and post language selection

Location:
polylang/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • polylang/trunk/include/admin-filters.php

    r612378 r614216  
    689689            $lang = $this->get_language($_GET['new_lang']); 
    690690 
    691         elseif (isset($_GET['lang']) && $_GET['lang']) { 
     691        // the language filter selection has just changed 
     692        // test $screen->base != 'post' to avoid interference between the language filter and the post language selection 
     693        elseif (isset($_GET['lang']) && $_GET['lang'] && $screen->base != 'post') { 
    692694            if ($_GET['lang'] != 'all') 
    693695                $lang = $this->get_language($_GET['lang']); 
     
    696698        } 
    697699 
    698         elseif ($lg = get_user_meta(get_current_user_id(), 'pll_filter_content', true)) 
     700        // again the language filter 
     701        elseif ($lg = get_user_meta(get_current_user_id(), 'pll_filter_content', true) && $screen->base != 'post') 
    699702            $lang = $this->get_language($lg); 
    700703 
  • polylang/trunk/include/core.php

    r612378 r614216  
    532532    // modifies the page link in case the front page is not in the default language 
    533533    function page_link($link, $id) { 
    534         if ($this->options['redirect_lang'] && $this->page_on_front) { 
    535             $lang = $lang = $this->get_post_language($id); 
     534        if ($this->options['redirect_lang'] && $this->page_on_front && $lang = $this->get_post_language($id)) { 
    536535            if (!isset($this->posts[$lang->slug][$this->page_on_front])) 
    537536                $this->posts[$lang->slug][$this->page_on_front] = $this->get_post($this->page_on_front, $lang); 
  • polylang/trunk/polylang.php

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

    r612378 r614216  
    101101* Bug correction: search is not filtered by the (default) language when the language is set by content and the language code is hidden for the default language 
    102102* Bug correction: posts & pages preview urls are broken when adding the language code to all urls 
    103 * Bug coorection: automatically added new top-level pages to menus are not filtered by language 
     103* Bug correction: automatically added new top-level pages to menus are not filtered by language 
     104* Bug correction: the admin language filter messes the categories languages when editing a post 
    104105 
    105106= 0.9.3 (2012-10-08) = 
Note: See TracChangeset for help on using the changeset viewer.