[wp-trac] [WordPress Trac] #18783: get_locale() should check site option in multisite even when WP_INSTALLING
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 24 15:38:59 UTC 2012
#18783: get_locale() should check site option in multisite even when WP_INSTALLING
--------------------------+---------------------
Reporter: nacin | Owner: nacin
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.3
Component: Multisite | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch |
--------------------------+---------------------
Comment (by foxinni):
I got a plugin running on a multisite and there is definitely something up
with the translation.
I tracked the problem down to the WPLANG option in
`http://localhost/<subsite>/wp-admin/options.php` just being empty. I
tried to update it, but it keeps reverting to blank. So down the line the
issue starts with get_locale() looking for the WPLANG value in the
site_options and then defaulting back to `en_US` because it's not picking
it up from the wp-config.php defined WPLANG.
I'm assuming that the defined WPLANG in the wp-config.php does not apply
in multi site instances.
I'm gonna write a filter to fix this, as there is ample hooks for that.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18783#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list