Plugin Directory

Changeset 1368705


Ignore:
Timestamp:
03/10/2016 09:34:26 PM (10 years ago)
Author:
webilop
Message:

1.6.5

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

Legend:

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

    r1368503 r1368705  
    165165= 1.6.4 =
    166166* Fix Vietnam flag
     167= 1.6.5 =
     168* Fix post-type issue
    167169
    168170== Upgrade Notice ==
  • user-language-switch/trunk/user-language-switch.php

    r1368503 r1368705  
    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.4
     5Version: 1.6.5
    66Author: webilop
    77Author URI: http://www.webilop.com
     
    12421242  }
    12431243
    1244   if(array_key_exists('languages_filter_enable', $settings) &&
    1245      !isset($settings['languages_filter_enable'][$postType])) {
    1246     return;
     1244  if (is_array($settings)) {
     1245    if (array_key_exists('languages_filter_enable', $settings)) {
     1246      if (is_string($postType) || is_numeric($postType)) {
     1247        if (is_array($settings['languages_filter_enable'])) {
     1248          if (!array_key_exists($postType, $settings['languages_filter_enable'])) {
     1249            return;
     1250          }
     1251        }
     1252      }
     1253    }
    12471254  }
    12481255
Note: See TracChangeset for help on using the changeset viewer.