WordPress.org

Forums

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

  1. X_Y
    Member
    Posted 1 year 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 1 year 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 1 year 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 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Polylang
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic