maximeschoeni / sublanguage

Multilanguage plugin for wordpress
42 stars 13 forks source link

Post type slug translations into default language aren't used #12

Closed rimas-kudelis closed 7 years ago

rimas-kudelis commented 7 years ago

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.