mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Users: Use type="hidden" for hidden input on User edit administration panel.
This hidden field added in [24552] to fix an issue with Chrome that was ignoring `autocomplete="off"` in `<input>`, 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
This commit is contained in:
@@ -640,7 +640,7 @@ switch ( $action ) {
|
||||
<tr id="password" class="user-pass1-wrap">
|
||||
<th><label for="pass1"><?php _e( 'New Password' ); ?></label></th>
|
||||
<td>
|
||||
<input class="hidden" value=" " /><!-- #24364 workaround -->
|
||||
<input type="hidden" value=" " /><!-- #24364 workaround -->
|
||||
<button type="button" class="button wp-generate-pw hide-if-no-js" aria-expanded="false"><?php _e( 'Set New Password' ); ?></button>
|
||||
<div class="wp-pwd hide-if-js">
|
||||
<span class="password-input-wrapper">
|
||||
|
||||
Reference in New Issue
Block a user