Opened 19 years ago
Closed 18 years ago
#2383 closed defect (bug) (fixed)
$locale can only be set once.
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.1 | Priority: | normal |
Severity: | normal | Version: | 2.0 |
Component: | Administration | Keywords: | locale filter getlocale bg|has-patch |
Focuses: | 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.