Opened 7 years ago
Closed 7 years ago
#2383 closed defect (bug) (fixed)
$locale can only be set once.
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | Administration | Version: | 2.0 |
| Severity: | normal | Keywords: | locale filter getlocale bg|has-patch |
| Cc: |
Description
get_locale() finishes early if a $locale already exists, meaning it can't be modified with a plugin after the first call of load_theme_textdomain, load_plugin_textdomain or load_default_textdomain.
This patch applies the locale filter every time getlocale() is called.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Apply filter to locale every time.