WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
[resolved] Sub-categories with the same name conflicts (4 posts)

  1. X_Y
    Member
    Posted 3 months ago #

    Hi,
    When I'm using polylang, sub-categories with the same names break.

    Chapter1
    --Concepts(slug:chapter1-concepts)
    --Practice(slug:chapter1-practice)
    Chapter2
    --Concepts(slug:chapter2-concepts)
    --Practice(slug:chapter2-practice)

    If I assign a post to chapter2-concepts, it'll automatically be turned into chapter1-concepts.

    Any ideas about how to fix this?

    http://wordpress.org/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 3 months ago #

    I confirm the bug. The development version (1.4dev17) should now fix it.
    http://downloads.wordpress.org/plugin/polylang.zip

  3. X_Y
    Member
    Posted 3 months ago #

    Yeah it's fixed, thanks!
    Would you mind telling me which lines are fixed? I'm learning wordpress right now :)

  4. Chouby
    Member
    Plugin Author

    Posted 3 months ago #

    Here is the diff:
    http://plugins.trac.wordpress.org/changeset?reponame=&new=835595%40polylang&old=834512%40polylang

    When terms are associated to a post, I check that the terms exist in the post's language. If that's not the case, the term is created in the correct language. This allows using tags with same name in different languages. I forgot to take the hierarchical taxonomies cases into account.

Reply

You must log in to post.

About this Plugin

About this Topic