diff --git a/wp-includes/user.php b/wp-includes/user.php index 822d0f0f0f..e102bca189 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -461,8 +461,8 @@ function wp_validate_application_password( $input_user ) { return $input_user; } - // Check that we're trying to authenticate - if ( ! isset( $_SERVER['PHP_AUTH_USER'] ) ) { + // Both $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] must be set in order to attempt authentication. + if ( ! isset( $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] ) ) { return $input_user; } diff --git a/wp-includes/version.php b/wp-includes/version.php index d12758edb2..2f53696ad8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6.1-alpha-50044'; +$wp_version = '5.6.1-alpha-50045'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.