mirror of
git://develop.git.wordpress.org/
synced 2025-04-05 04:33:18 +02: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:
parent
3fb4889b1f
commit
e8846318cf
@ -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">
|
||||
|
@ -566,7 +566,7 @@ if ( current_user_can( 'create_users' ) ) {
|
||||
</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"><?php _e( 'Generate password' ); ?></button>
|
||||
<div class="wp-pwd">
|
||||
<?php $initial_password = wp_generate_password( 24 ); ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user