From e8846318cf9a4c8d012ae32b4de9a51655237a24 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Wed, 7 Jun 2023 21:23:08 +0000 Subject: [PATCH] Users: Use `type="hidden"` for hidden input on User edit administration panel. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This hidden field added in [24552] to fix an issue with Chrome that was ignoring `autocomplete="off"` in ``, by using a hidden, non-named, non-empty input right before the password field. However this input was only hidden via CSS and didn't have any label, which is considered as an accessibility issue. This changeset replaces `class="hidden"` with `type="hidden"` to properly indicate to user agents that it is an hidden field. Follow-up to [24552]. Props smit08, audrasjb, sabernhardt, ryokuhi, tushar284, ashikurwp, siddhantwadhwani, pavanpatil1. Fixes #56776. --Cette ligne, et les suivantes ci-dessous, seront ignorées-- M trunk/src/wp-admin/user-edit.php M trunk/src/wp-admin/user-new.php git-svn-id: https://develop.svn.wordpress.org/trunk@55892 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/user-edit.php | 2 +- src/wp-admin/user-new.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/user-edit.php b/src/wp-admin/user-edit.php index 2f1c468b53..d17574ce76 100644 --- a/src/wp-admin/user-edit.php +++ b/src/wp-admin/user-edit.php @@ -640,7 +640,7 @@ switch ( $action ) { - +
diff --git a/src/wp-admin/user-new.php b/src/wp-admin/user-new.php index 1c62f18cb3..a1bf974237 100644 --- a/src/wp-admin/user-new.php +++ b/src/wp-admin/user-new.php @@ -566,7 +566,7 @@ if ( current_user_can( 'create_users' ) ) { - +