Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#41116 closed defect (bug) (duplicate)

Permalink localization being taken from users language

Reported by: bradadams's profile bradadams Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Permalinks Keywords:
Focuses: Cc:

Description

I was just working on a clients site, that uses a foreign global locale (Swedish, to be precise).

They have permalinks set to the default localization, so archive is Arkiv, WooCommerce products uses Produkt and so forth.

In my user profile I have the locale set to EN, and needed to refresh the permalinks after a change. When I visited the permalinks edit screen, it was all localized to my user language, including the actual permalinks. So I saw "archive"/"product".

After saving, the site literally "broke". All the links using foreign permalinks stopped working. I had to switch my account locale to match the sites global setting (again, Swedish) and then re-save. This switched it all back to normal.

Steps to reproduce

  1. Switch your user locale to something different than the main sites /wp-admin/profile.php.
  2. Visit the /wp-admin/options-permalink.php screen, and click save.
  3. Permalinks now will follow your user locale, where-as it seems more logical for them to always use the sites global language.

Change History (2)

#1 @ocean90
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version 4.8 deleted

Hello @bradadams, welcome to WordPress Trac!

Thanks for your report, we're already tracking this issue in #39587.

#2 @bradadams
6 years ago

Aha, that is true @ocean90 - my bad. Although I must say that first issue is quite poorly written 😬

It doesn't mention the word permalink in it at all...

Note: See TracTickets for help on using tickets.