diff --git a/wp-includes/user.php b/wp-includes/user.php index f60dbe5d3f..6222e932a9 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -48,10 +48,10 @@ function wp_signon( $credentials = array(), $secure_cookie = '' ) { 'remember' => false, ); - if ( ! empty( $_POST['log'] ) ) { + if ( ! empty( $_POST['log'] ) && is_string( $_POST['log'] ) ) { $credentials['user_login'] = wp_unslash( $_POST['log'] ); } - if ( ! empty( $_POST['pwd'] ) ) { + if ( ! empty( $_POST['pwd'] ) && is_string( $_POST['pwd'] ) ) { $credentials['user_password'] = $_POST['pwd']; } if ( ! empty( $_POST['rememberme'] ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 30b5520349..e04ca9d679 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59594'; +$wp_version = '6.8-alpha-59595'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.