[wp-trac] [WordPress Trac] #39587: link problems with language settings
WordPress Trac
noreply at wordpress.org
Wed Apr 5 11:48:12 UTC 2023
#39587: link problems with language settings
--------------------------+------------------------------
Reporter: aansel | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 4.7
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
--------------------------+------------------------------
Changes (by swissspidy):
* keywords: => dev-feedback
* severity: major => normal
Comment:
It's generally discouraged to make post type slugs translatable because
you will constantly run into situations like this, or permalinks breaking
because translations get updated.
In theory, on `options-permalink.php` we could wrap the
`flush_rewrite_rules()` call in a `switch_to_locale()` to always use the
site language, but this alone is no guarantee that nothing else could
break. Especially since `flush_rewrite_rules();` is called in many places
both in core and plugins.
So I would consider closing this as a wontfix because it's plugins
`doing_it_wrong()`. Adding `dev-feedback` though to get more feedback.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39587#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list