[wp-trac] [WordPress Trac] #45668: The (new) determine_locale() may throw a notice
WordPress Trac
noreply at wordpress.org
Tue Dec 18 03:39:19 UTC 2018
#45668: The (new) determine_locale() may throw a notice
--------------------------+---------------------
Reporter: azaozz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0.2
Component: I18N | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+---------------------
Comment (by pento):
In [changeset:"44284" 44284]:
{{{
#!CommitTicketReference repository="" revision="44284"
i18n: Prevent a PHP warning when a mu-plugin loads a textdomain.
`determine_locale()` accesses the `$pagenow` global, but this is set after
mu-plugins are loaded, so we need to check that it's been set.
Props swissspidy, azaozz.
See #45668.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45668#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list