[wp-trac] [WordPress Trac] #46694: Site Health: Debug copy field uses site locale, not user locale
WordPress Trac
noreply at wordpress.org
Thu Apr 4 21:23:36 UTC 2019
#46694: Site Health: Debug copy field uses site locale, not user locale
------------------------------------------+----------------------
Reporter: Clorith | Owner: desrosj
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.2
Component: Administration | Version:
Severity: normal | Resolution: fixed
Keywords: site-health has-patch commit | Focuses:
------------------------------------------+----------------------
Changes (by desrosj):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"45110" 45110]:
{{{
#!CommitTicketReference repository="" revision="45110"
Site Health: Ensure the user locale is listed in debug information.
This change switches to using `get_user_locale()` when adding the language
to the Site Health debug information to ensure the user’s locale
preference is reflected.
Also, `function_exists()` checks for `switch_to_locale()` and
`restore_previous_locale()` were required in the plugin to support older
versions of WordPress, but they are not required in core/
Props: Clorith, desrosj.
Fixes #46694.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46694#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list