Go to file
Dominik Schilling (ocean90) 404c584956 I18N: Don't initialize `WP_Locale_Switcher` in `wp_load_translations_early()`.
`wp_load_translations_early()` is used when WordPress isn't fully initialized. Therefore using the `WP_Locale_Switcher` with `get_locale()`/`get_user_locale()` can cause PHP fatal errors.
This reverts [38976] and [38977], and instead removes `WP_Locale_Switcher` from `wp_load_translations_early()`.

See #29783.
Fixes #38535.

git-svn-id: https://develop.svn.wordpress.org/trunk@39005 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-29 11:22:50 +00:00
src I18N: Don't initialize `WP_Locale_Switcher` in `wp_load_translations_early()`. 2016-10-29 11:22:50 +00:00
tests I18N: Don't initialize `WP_Locale_Switcher` in `wp_load_translations_early()`. 2016-10-29 11:22:50 +00:00
tools/i18n
.editorconfig
.gitignore Revert [38401] after [38480]. 2016-09-06 18:12:09 +00:00
.jshintrc
.travis.yml
Gruntfile.js Build/Test Tools: Allow Minimal Builds 2016-10-20 22:23:21 +00:00
package.json Build/Test: Bump Autoprefixer to 6.5.0 2016-09-30 17:33:57 +00:00
phpunit.xml.dist oEmbed: Remove the oEmbed provider unit tests. 2016-10-20 09:15:10 +00:00
wp-cli.yml
wp-config-sample.php
wp-tests-config-sample.php Tests: Use a minimal theme for tests. 2016-10-21 11:02:37 +00:00