#45668 closed defect (bug) (fixed)
The (new) determine_locale() may throw a notice
| Reported by: | azaozz | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.0.2 |
| Component: | I18N | Version: | 5.0 |
| Severity: | normal | Keywords: | has-patch fixed-5.0 |
| Cc: | Focuses: |
Description
Happens then there is a plugin in /mu-plugins that loads a textdomain and $_GET['wp_lang'] is not empty, like when trying to log in.
Caused by the global $pagenow. It is set after mu-plugins are loaded (in vars.php) but determine_locale() expects is to always be set.
Attachments (1)
Change History (7)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Introduced in [43776]. An
! empty( $GLOBALS['pagenow'] )check would probably fix it.Setting to 5.0.2 as a notice would break any JS output.