Custom post type slugs can be translated into the default language, but these translations are not used.
This can be fixed by changing the topmost condition in translate_custom_post_link() from if (!$sample && $this->is_sub()) to if (!$sample). The second part of it (if (!$this->issub())) should probably wrap post name translation only.
Custom post type slugs can be translated into the default language, but these translations are not used.
This can be fixed by changing the topmost condition in
translate_custom_post_link()
fromif (!$sample && $this->is_sub())
toif (!$sample)
. The second part of it (if (!$this->issub())
) should probably wrap post name translation only.