Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localization Issue #45

Open
Marenu opened this issue Dec 3, 2019 · 0 comments
Open

Localization Issue #45

Marenu opened this issue Dec 3, 2019 · 0 comments

Comments

@Marenu
Copy link

Marenu commented Dec 3, 2019

Hi :)
I have a strange problem, i was able to analyze a bit, but i don't know enough about wordpress to fix it myself.

it all starts with calling add_items(), then this calls add_singular_items(), this calls add_post_hierarchy(). From there add_path_parents is called while rewrite['slug'] contains something like <unlocalizedPageName>/<unlocalizedPageName>.
Within add_path_parents the first get_page_by_path doesn't return an object, but the second time below it returns the unlocalized object.
So add_post_parents is called and get_the_title() returns the unlocalized title from the parent.

However the breadcrumb seems to localize the second page, but not the first one. This leeds to a breadcrumb similiar like <localizedHomePageName>/<unlocalizedPage>/<localizedSubpage>/<someOtherParameter>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant