[wp-trac] [WordPress Trac] #45668: The (new) determine_locale() may throw a notice
WordPress Trac
noreply at wordpress.org
Wed Dec 19 00:14:05 UTC 2018
#45668: The (new) determine_locale() may throw a notice
---------------------------------+-----------------------------
Reporter: azaozz | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.0.2
Component: I18N | Version: 5.0
Severity: normal | Resolution: fixed
Keywords: has-patch fixed-5.0 | Focuses:
---------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"44317" 44317]:
{{{
#!CommitTicketReference repository="" revision="44317"
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.
Merges [44284] to trunk.
Fixes #45668.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45668#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list