Version Description
= 2.4 =
- Issues with WPML and custom taxonomies resolved. New features, see plugin page at wordpress.org for full details.
= 2.3.1 =
- Security fix for sensitive data exposed when using the debug option
= 2.3 =
- New features, see plugin page at wordpress.org for full details. Watch out for the changes in class names: https://github.com/rickard2/utcw/issues/29
= 2.2.3 =
- Fixed naming collision issue with other plugins
= 2.2.2 =
- Fixed widget initialization issue
= 2.2.1 =
- Fixes compatibility issue with PHP 5.2
= 2.2 =
- New features, see the plugin page at wordpress.org for full details
= 2.1 =
- New features, see the plugin page at wordpress.org for full details
= 2.0.1 =
- Small bug fix in the widget options panel
= 2.0 =
- New plugin architecture and a big rewrite of the plugin foundation. Watch out for breaking changes, please see http://exz.nu/utcwbreaking for more information.
Download this release
Release Info
Developer | exz |
Plugin | Ultimate Tag Cloud Widget |
Version | 2.4-beta2 |
Comparing to | |
See all releases |
Code changes from version 2.4-beta1 to 2.4-beta2
- readme.txt +4 -3
- src/Language/WPMLHandler.php +14 -6
readme.txt
CHANGED
@@ -49,9 +49,10 @@ If you have questions, please post them in the forums.
|
|
49 |
|
50 |
= 2.4 =
|
51 |
|
|
|
52 |
* [#32](https://github.com/rickard2/utcw/issues/32): Added filters to enable developers to hook into the plugin
|
53 |
* [#33](https://github.com/rickard2/utcw/issues/33): Updated JS code to support newer versions of jQuery
|
54 |
-
* [#36](https://github.com/rickard2/utcw/issues/36)
|
55 |
* [#37](https://github.com/rickard2/utcw/issues/37): Fixed UI issue with the show title option always being checked
|
56 |
* [#39](https://github.com/rickard2/utcw/issues/39): Added option to add post count to the term name
|
57 |
|
@@ -63,7 +64,7 @@ If you have questions, please post them in the forums.
|
|
63 |
* [#27](https://github.com/rickard2/utcw/issues/27): Added filtering feature to generate a cloud of posts which have a common term/terms
|
64 |
* [#28](https://github.com/rickard2/utcw/issues/28): Added more styling options (center, right align, justify, display as list)
|
65 |
* [#29](https://github.com/rickard2/utcw/issues/29): Changed CSS classes to match the WordPress tag cloud
|
66 |
-
* [#25](https://github.com/rickard2/utcw/issues/25)
|
67 |
|
68 |
= 2.2.3 =
|
69 |
|
@@ -110,7 +111,7 @@ The upgrade notice history for the 1.x branch is available on [GitHub](https://g
|
|
110 |
|
111 |
= 2.4 =
|
112 |
|
113 |
-
* New features, see plugin page at wordpress.org for full details.
|
114 |
|
115 |
= 2.3.1 =
|
116 |
|
49 |
|
50 |
= 2.4 =
|
51 |
|
52 |
+
* Fixed issue with WPML and custom taxonomies
|
53 |
* [#32](https://github.com/rickard2/utcw/issues/32): Added filters to enable developers to hook into the plugin
|
54 |
* [#33](https://github.com/rickard2/utcw/issues/33): Updated JS code to support newer versions of jQuery
|
55 |
+
* [#36](https://github.com/rickard2/utcw/issues/36): [#38](https://github.com/rickard2/utcw/issues/38): Added options for changing the value of the title attribute
|
56 |
* [#37](https://github.com/rickard2/utcw/issues/37): Fixed UI issue with the show title option always being checked
|
57 |
* [#39](https://github.com/rickard2/utcw/issues/39): Added option to add post count to the term name
|
58 |
|
64 |
* [#27](https://github.com/rickard2/utcw/issues/27): Added filtering feature to generate a cloud of posts which have a common term/terms
|
65 |
* [#28](https://github.com/rickard2/utcw/issues/28): Added more styling options (center, right align, justify, display as list)
|
66 |
* [#29](https://github.com/rickard2/utcw/issues/29): Changed CSS classes to match the WordPress tag cloud
|
67 |
+
* [#25](https://github.com/rickard2/utcw/issues/25): [#26](https://github.com/rickard2/utcw/issues/26), [#31](https://github.com/rickard2/utcw/issues/31): Internal / code quality
|
68 |
|
69 |
= 2.2.3 =
|
70 |
|
111 |
|
112 |
= 2.4 =
|
113 |
|
114 |
+
* Issues with WPML and custom taxonomies resolved. New features, see plugin page at wordpress.org for full details.
|
115 |
|
116 |
= 2.3.1 =
|
117 |
|
src/Language/WPMLHandler.php
CHANGED
@@ -94,15 +94,23 @@ class UTCW_WPMLHandler extends UTCW_TranslationHandler
|
|
94 |
*/
|
95 |
public function isInCurrentLanguage(stdClass $input)
|
96 |
{
|
97 |
-
$
|
98 |
-
$defaultLanguage = $this->getDefaultLanguage();
|
99 |
|
100 |
-
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
}
|
103 |
|
104 |
-
//
|
105 |
-
return
|
106 |
}
|
107 |
|
108 |
/**
|
94 |
*/
|
95 |
public function isInCurrentLanguage(stdClass $input)
|
96 |
{
|
97 |
+
$icl_object_id = icl_object_id($input->term_id, $input->taxonomy);
|
|
|
98 |
|
99 |
+
// For tags, icl_object_id is null for some reason and the language is present in the term name
|
100 |
+
if ($icl_object_id === null) {
|
101 |
+
$language = $this->getLanguage();
|
102 |
+
$defaultLanguage = $this->getDefaultLanguage();
|
103 |
+
|
104 |
+
if ($language === $defaultLanguage) {
|
105 |
+
return strpos($input->name, '@') === false; // Terms in the default language doesn't have a @-notation
|
106 |
+
}
|
107 |
+
|
108 |
+
// Translated terms will have @{lang} at the end
|
109 |
+
return strpos($input->name, '@' . $language) !== false;
|
110 |
}
|
111 |
|
112 |
+
// If the returned object id is the same, it's in the current language
|
113 |
+
return $icl_object_id == $input->term_id;
|
114 |
}
|
115 |
|
116 |
/**
|