Open
Reported for: WPML Multilingual CMS 4.5.11
Overview of the issue
In order to explain this situation, there are some conditions and steps that need to be followed:
- Let’s suppose that you have created and registered a custom taxonomy in your WordPress site but it is set as Not translatable in WPML → Settings.
- You create a term and assign it to a post, then you translate it.
- You then decide to set your custom to taxonomy to Translatable from WPML → Settings → Taxonomies Translation.
- If you go now to your taxonomies list, you will see new terms with a language code added to their slug.
Workaround
Please, be sure to make a full backup of your site before proceeding.
- Edit the file /wp-content/plugins/sitepress-multilingual-cms/inc/setup/wpml-settings-helper.class.php.
- Look for line 241.
- Replace:
foreach ( $changed_sync_options as $taxonomy_name => $taxonomy_sync_option ) { $this->sitepress->verify_taxonomy_translations( $taxonomy_name ); }
With
foreach ( $changed_sync_options as $taxonomy_name => $taxonomy_sync_option ) { if ($taxonomy_sync_option) { $this->sitepress->verify_taxonomy_translations( $taxonomy_name ); } }