WordPress.org

Plugin Directory

Changeset 614619


Ignore:
Timestamp:
10/19/12 17:08:36 (18 months ago)
Author:
Chouby
Message:

again admin language filter bug correction

Location:
polylang/trunk
Files:
3 edited

Legend:

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

    r614216 r614619  
    690690 
    691691        // 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') { 
     692        // test $screen->base to avoid interference between the language filter and the post language selection and the category parent dropdown list 
     693        elseif (isset($_GET['lang']) && $_GET['lang'] && !in_array($screen->base, array('post', 'edit-tags'))) { 
    694694            if ($_GET['lang'] != 'all') 
    695695                $lang = $this->get_language($_GET['lang']); 
     
    699699 
    700700        // again the language filter 
    701         elseif ($lg = get_user_meta(get_current_user_id(), 'pll_filter_content', true) && $screen->base != 'post') 
     701        elseif (($lg = get_user_meta(get_current_user_id(), 'pll_filter_content', true)) && 
     702            $screen->base != 'post' && !($screen->base == 'edit-tags' && isset($args['class']))) // don't apply to post edit and the category parent dropdown list 
    702703            $lang = $this->get_language($lg); 
    703704 
  • polylang/trunk/polylang.php

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

    r614216 r614619  
    102102* Bug correction: posts & pages preview urls are broken when adding the language code to all urls 
    103103* 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 
     104* Bug correction: the admin language filter messes the categories languages when editing a post and the parent dropdown list when editing a category 
    105105 
    106106= 0.9.3 (2012-10-08) = 
Note: See TracChangeset for help on using the changeset viewer.