diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index 2c227bc1da..e8bb37a54b 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -50,16 +50,6 @@ function get_locale() { $locale = WPLANG; } - // If $wpdb hasn't been initialised yet, we can only return what we have. - if ( ! $wpdb ) { - if ( ! $locale ) { - $locale = 'en_US'; - } - - /** This filter is documented in wp-includes/l10n.php */ - return apply_filters( 'locale', $locale ); - } - // If multisite, check options. if ( is_multisite() ) { // Don't check blog option when installing. diff --git a/wp-includes/load.php b/wp-includes/load.php index 523960f023..940eb660b4 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -917,8 +917,6 @@ function wp_load_translations_early() { } $wp_locale = new WP_Locale(); - $wp_locale_switcher = new WP_Locale_Switcher(); - $wp_locale_switcher->init(); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 1b18f40cf7..28f8f12a2f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta1-39004'; +$wp_version = '4.7-beta1-39005'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.