Skip Navigation

Open

Reported for: WPML Multilingual CMS 4.5.11

Topic Tags: Bug

Overview of the issue

In order to explain this situation, there are some conditions and steps that need to be followed:

  1. Let’s suppose that you have created and registered a custom taxonomy in your WordPress site but it is set as Not translatable in WPMLSettings.
  2. You create a term and assign it to a post, then you translate it.
  3. You then decide to set your custom to taxonomy to Translatable from WPMLSettingsTaxonomies Translation.
  4. 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.

  1. Edit the file /wp-content/plugins/sitepress-multilingual-cms/inc/setup/wpml-settings-helper.class.php.
  2. Look for line 241.
  3. 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 );
        }
    }
    

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>