[wp-trac] [WordPress Trac] #31318: options-general.php have "Site Language" set to (current view language) but should be (site language)
WordPress Trac
noreply at wordpress.org
Sun Dec 6 17:18:36 UTC 2015
#31318: options-general.php have "Site Language" set to (current view language) but
should be (site language)
--------------------------------------+-----------------------------
Reporter: Profforg | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.5
Component: I18N | Version: 4.0
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses: administration
--------------------------------------+-----------------------------
Changes (by swissspidy):
* keywords: good-first-bug has-patch needs-testing => good-first-bug has-
patch
* milestone: Future Release => 4.5
Comment:
I've tested this using Polylang on both trunk and 4.3.
Current behaviour:
* Set site language to German
* Change user language to English
* Admin is in English and the site language is displayed as being English
With the patch applied:
* Set site language to German
* Change user language to English
* Admin is in English and the site language is displayed correctly as
being German
According to @ocean90 `get_locale` was probably used for compatibility
reasons for sites that don't have the `WPLANG` option set, but the
`upgrade_400()` function sets it for any site anyway.
Therefore the patch should be good to go.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31318#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list