diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index 8444bf2c82..951c1c316b 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -145,12 +145,14 @@ function determine_locale() { } else { $determined_locale = sanitize_locale_name( $_COOKIE['wp_lang'] ); } - } else if ( - ( isset( $_GET['_locale'] ) && 'user' === $_GET['_locale'] && wp_is_json_request() ) || - is_admin() + } elseif ( + is_admin() || + ( isset( $_GET['_locale'] ) && 'user' === $_GET['_locale'] && wp_is_json_request() ) ) { $determined_locale = get_user_locale(); - } else { + } + + if ( ! $determined_locale ) { $determined_locale = get_locale(); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 0d805bb429..09f10ce4c6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-56002'; +$wp_version = '6.3-alpha-56003'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.