mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +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:
@@ -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 ); ?>
|
||||
|
||||
Reference in New Issue
Block a user