mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
Daniel Bachhuber
c5e1cd0401
l10n: Avoid calling
is_user_logged_in()
in determine_locale()
.
`is_user_logged_in()` is a pluggable function, and loaded after plugins are loaded. If a plugin calls `__()` too early, `is_user_logged_in()` is missing and WordPress will fatal. `get_user_locale()` already handles this scenario for us, so it's safe to rely on exclusively. See #44758. Fixes #45235. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43846 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
81.4%
CSS
8.9%
JavaScript
8.2%
SCSS
0.8%
HTML
0.7%