Changeset 2695085
- Timestamp:
- 03/16/2022 11:25:03 PM (4 years ago)
- Location:
- elevio/trunk
- Files:
-
- 3 edited
-
elevio.php (modified) (1 diff)
-
plugin_files/models/post.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
elevio/trunk/elevio.php
r2641517 r2695085 6 6 Author: Elevio 7 7 Author URI: https://elev.io 8 Version: 4. 3.08 Version: 4.4.0 9 9 */ 10 10 -
elevio/trunk/plugin_files/models/post.php
r2481895 r2695085 111 111 $sitepress->switch_lang($language); 112 112 } 113 $is_multilanguage_allowed = Elevio::get_instance()->multi_language_is_enabled(); 114 $tax_type = Elevio::get_instance()->get_category_taxonomy(); 115 $default_language = $sitepress->get_default_language(); 116 global $sitepress; 113 117 114 118 if ($wp_categories = wp_get_object_terms($this->id, $args['taxonomy'])) { 115 119 foreach ($wp_categories as $wp_category) { 120 121 // Unify category id if the translation is enabled 122 if ($is_multilanguage_allowed) { 123 $wp_category->term_id = wpml_object_id_filter($wp_category->term_id, $tax_type, true, $default_language); 124 } 125 116 126 $category = new Elevio_Sync_Category($wp_category); 117 127 if ($category->id == 1 && $category->slug == 'uncategorized' && $args['taxonomy'] == 'category') { -
elevio/trunk/readme.txt
r2641517 r2695085 4 4 Stable tag: 4.9.8 5 5 Requires at least: 2.8 6 Tested up to: 5. 6.66 Tested up to: 5.9.2 7 7 8 8 Elevio for WordPress plugin that integrates with your existing knowledge base, chat client, support system and more … … 38 38 39 39 == Changelog == 40 41 = 4.4.0 = 42 * Improved category support for multi-lingual content when WPML is used. 40 43 41 44 = 4.3.0 =
Note: See TracChangeset
for help on using the changeset viewer.