Opened 3 years ago
Closed 3 years ago
#53684 closed defect (bug) (worksforme)
Faulty substitution of German umlauts in slugs and keywords
Reported by: | spielautomat4 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Permalinks | Keywords: | |
Focuses: | Cc: |
Description
Just submitted #53682 because handling of keywords seemed odd.
In addition to that I just noticed that German umlauts in post slugs and new keywords are no longer substituted correctly. When using "ü" in a post title, for example, the letter used to be replaced by "ue" in the slug (which is correct from a grammatical standpoint).
There are a lot of old posts in my blog that proof, this was done correctly in the past. With the latest WordPress 5.7.2, however, German umlauts are no longer replaced by "ue", "oe" or "ae". Instead WordPress now uses "u", "o" or "a" for substitution (which is not correct).
This also applies to "ß" being replaced by "ss" (now only "s").
Not sure, though, if this change was a design decision or is a bug.
Attachments (2)
Change History (13)
This ticket was mentioned in Slack in #polyglots by presskopp. View the logs.
3 years ago
This ticket was mentioned in Slack in #core by presskopp. View the logs.
3 years ago
#6
@
3 years ago
That's very strange. I can't reproduce this on my side:
- using WordPress 5.8 RC 4
- switching to de_DE
- new post
- post title:
Test permalinkß deutsch
- hit "Publish" button
- result:
http://localhost/2021/07/18/test-permalinkss-deutsch/
Looks good to me 🤨
#8
@
3 years ago
In buesserhemd.png
I think we have the desired behavior: ß
is replaced with s
because you're not on a Deutsch WordPress installation
#9
@
3 years ago
looks like I accidentally posted a screenshot using an english environment, my bad. Still there's some kind of issue, which looks to appear only temporal after all I can say atm.
#10
@
3 years ago
- Keywords close added; reporter-feedback needs-patch removed
My bad, in this case I did indeed observe this behaviour on an en_US installation. With the language set to de_DE, the substitution of German umlauts is as desired for post slugs.
I think we can close this ticket. I was not aware of the fact that the handling is different based on the installation's language. Sorry for any trouble caused.
The other issue that I reported in #53682, however, still remains. Even with de_DE.
Hello and thank you for opening this ticket @spielautomat4,
What is the locale of your website?
Are you using any translation/multilingual plugin?
If you website uses the
de_DE
locale, it should convertß
toss
andä
toae
.Here is the related source code of remove_accent() function in 5.7.2: https://core.trac.wordpress.org/browser/tags/5.7.2/src/wp-includes/formatting.php#L1922