What steps will reproduce the problem?
1. Set language switcher widget to display in sidebar
2. Set "WPML>Languages>How to handle languages without translation" to "Skip
language"
3. View a page that hasn't been translated into all languages of the
installation.
What is the expected output? => Only the available translations for that page
should be listed by the widget.
What do you see instead? => All of the site's installed languages are offered.
If people click on a language in the switcher for which there is no
translation, they get sent to the front page.
Cause: line 533 [WPML 2.0.4], in function widget_list() of
"/inc/language-switcher.php" has hard-coded "skip_missing=0" when it should be
retrieving the setting's value. Note that line 182 for the language switcher in
the footer has the same problem.
This bug was also described at: http://forum.wpml.org/topic.php?id=1149
WPML 2.0.4
WordPress 3.0.1
PHP 5.2.15
MySQL 5.0.91
Original issue reported on code.google.com by
mouseran...@gmail.comon 10 Jan 2011 at 9:08