From 0f28fc7aed218e417327a7a261bce2e7eefedd6a Mon Sep 17 00:00:00 2001 From: audrasjb Date: Thu, 19 Jan 2023 08:53:13 +0000 Subject: [PATCH] Login and Registration: Disable spellcheck for password fields. This changeset adds `spellcheck="false"` attribute to various password fields. The spellcheck global attribute defines whether the element may be checked for spelling errors. The `false` value indicates that the element should not be checked for spelling errors, which is relevant for a password field. Furthermore, and as per MDN specs, using spellchecking can have consequences for users' security and privacy. The specification does not regulate how spellchecking is done and the content of the element may be sent to a third party for spellchecking results. Thus, it is recommended to set `spellcheck` attribute to `false` for elements that can contain sensitive information. Which is the case for password fields. Props dziudek, audrasjb, gainesm, fosuahmed. Fixes #56763. Built from https://develop.svn.wordpress.org/trunk@55094 git-svn-id: http://core.svn.wordpress.org/trunk@54627 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/file.php | 2 +- wp-admin/install.php | 4 ++-- wp-admin/user-edit.php | 4 ++-- wp-admin/user-new.php | 4 ++-- wp-includes/general-template.php | 2 +- wp-includes/post-template.php | 2 +- wp-includes/version.php | 2 +- wp-login.php | 6 +++--- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 8cbf63c7ad..f609277826 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -2390,7 +2390,7 @@ function request_filesystem_credentials( $form_post, $type = '', $error = false,