diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index b073cb32d5..3df4898869 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -138,7 +138,7 @@ function determine_locale() { $determined_locale = get_user_locale(); } - if ( ! empty( $_GET['wp_lang'] ) && 'wp-login.php' === $GLOBALS['pagenow'] ) { + if ( ! empty( $_GET['wp_lang'] ) && ! empty( $GLOBALS['pagenow'] ) && 'wp-login.php' === $GLOBALS['pagenow'] ) { $determined_locale = sanitize_text_field( $_GET['wp_lang'] ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 42bd582130..9a858224f9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0.2-RC1-44259'; +$wp_version = '5.0.2-RC1-44284'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.