Opened 14 years ago
Closed 13 years ago
#18783 closed defect (bug) (fixed)
get_locale() should check site option in multisite even when WP_INSTALLING
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Multisite | Keywords: | has-patch |
Focuses: | Cc: |
Description
In multisite, get_locale() will check get_option('WPLANG') and then get_site_option('WPLANG'). We skip both when WP_INSTALLING (i.e. blog activation), but we should only skip the blog option at that point.
Follow up to a comment of mine in #14553.
Attachments (1)
Change History (7)
#3
@
14 years ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
In [19059]:
#4
@
13 years ago
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.
Related: #18688