WordPress.org

Plugin Directory

Changeset 614707


Ignore:
Timestamp:
10/19/12 20:01:45 (18 months ago)
Author:
Chouby
Message:

search form broken for static front page

Location:
polylang/trunk
Files:
3 edited

Legend:

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

    r614216 r614707  
    809809            $language = $this->curlang; 
    810810 
    811         if (isset($this->home_urls[$language->slug])) 
    812             return $this->home_urls[$language->slug]; 
     811        if (isset($this->home_urls[$language->slug][$is_search])) 
     812            return $this->home_urls[$language->slug][$is_search]; 
    813813 
    814814        if ($this->options['default_lang'] == $language->slug && $this->options['hide_default']) 
    815             return $this->home_urls[$language->slug] = trailingslashit($this->home); 
     815            return $this->home_urls[$language->slug][$is_search] = trailingslashit($this->home); 
    816816 
    817817        // a static page is used as front page : /!\ don't use get_page_link to avoid infinite loop 
    818818        // don't use this for search form 
    819819        if (!$is_search && $this->page_on_front && $id = $this->get_post($this->page_on_front, $language)) 
    820             return $this->home_urls[$language->slug] = $this->page_link('', $id); 
    821  
    822         return $this->home_urls[$language->slug] = get_term_link($language, 'language'); 
     820            return $this->home_urls[$language->slug][$is_search] = $this->page_link('', $id); 
     821 
     822        return $this->home_urls[$language->slug][$is_search] = get_term_link($language, 'language'); 
    823823    } 
    824824 
  • polylang/trunk/polylang.php

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

    r614619 r614707  
    103103* Bug correction: automatically added new top-level pages to menus are not filtered by language 
    104104* Bug correction: the admin language filter messes the categories languages when editing a post and the parent dropdown list when editing a category 
     105* Bug correction: search form does not work when using a static front page (introduced in 0.9.2) 
    105106 
    106107= 0.9.3 (2012-10-08) = 
Note: See TracChangeset for help on using the changeset viewer.