mirror of
git://develop.git.wordpress.org/
synced 2025-02-06 23:50:43 +01:00
Coding Standards: Bring some consistency to the order of attributes in password fields.
Follow-up to [11359], [13592], [13696], [33023], [33246], [33353], [41556], [46256], [49248], [53111], [55094]. See #56791. git-svn-id: https://develop.svn.wordpress.org/trunk@55145 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8ca206a849
commit
d1f3f85f0f
@ -140,7 +140,7 @@ function display_setup_form( $error = null ) {
|
|||||||
<td>
|
<td>
|
||||||
<div class="wp-pwd">
|
<div class="wp-pwd">
|
||||||
<?php $initial_password = isset( $_POST['admin_password'] ) ? stripslashes( $_POST['admin_password'] ) : wp_generate_password( 18 ); ?>
|
<?php $initial_password = isset( $_POST['admin_password'] ) ? stripslashes( $_POST['admin_password'] ) : wp_generate_password( 18 ); ?>
|
||||||
<input type="password" name="admin_password" id="pass1" class="regular-text" spellcheck="false" autocomplete="new-password" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
|
<input type="password" name="admin_password" id="pass1" class="regular-text" autocomplete="new-password" spellcheck="false" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
|
||||||
<button type="button" class="button wp-hide-pw hide-if-no-js" data-start-masked="<?php echo (int) isset( $_POST['admin_password'] ); ?>" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
|
<button type="button" class="button wp-hide-pw hide-if-no-js" data-start-masked="<?php echo (int) isset( $_POST['admin_password'] ); ?>" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
|
||||||
<span class="dashicons dashicons-hidden"></span>
|
<span class="dashicons dashicons-hidden"></span>
|
||||||
<span class="text"><?php _e( 'Hide' ); ?></span>
|
<span class="text"><?php _e( 'Hide' ); ?></span>
|
||||||
@ -160,7 +160,7 @@ function display_setup_form( $error = null ) {
|
|||||||
</label>
|
</label>
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input name="admin_password2" type="password" id="pass2" autocomplete="new-password" spellcheck="false" />
|
<input type="password" name="admin_password2" id="pass2" autocomplete="new-password" spellcheck="false" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="pw-weak">
|
<tr class="pw-weak">
|
||||||
|
@ -661,7 +661,7 @@ switch ( $action ) {
|
|||||||
<tr class="user-pass2-wrap hide-if-js">
|
<tr class="user-pass2-wrap hide-if-js">
|
||||||
<th scope="row"><label for="pass2"><?php _e( 'Repeat New Password' ); ?></label></th>
|
<th scope="row"><label for="pass2"><?php _e( 'Repeat New Password' ); ?></label></th>
|
||||||
<td>
|
<td>
|
||||||
<input name="pass2" type="password" id="pass2" class="regular-text" value="" autocomplete="new-password" spellcheck="false" aria-describedby="pass2-desc" />
|
<input type="password" name="pass2" id="pass2" class="regular-text" value="" autocomplete="new-password" spellcheck="false" aria-describedby="pass2-desc" />
|
||||||
<?php if ( IS_PROFILE_PAGE ) : ?>
|
<?php if ( IS_PROFILE_PAGE ) : ?>
|
||||||
<p class="description" id="pass2-desc"><?php _e( 'Type your new password again.' ); ?></p>
|
<p class="description" id="pass2-desc"><?php _e( 'Type your new password again.' ); ?></p>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
@ -584,7 +584,7 @@ if ( current_user_can( 'create_users' ) ) {
|
|||||||
<tr class="form-field form-required user-pass2-wrap hide-if-js">
|
<tr class="form-field form-required user-pass2-wrap hide-if-js">
|
||||||
<th scope="row"><label for="pass2"><?php _e( 'Repeat Password' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
|
<th scope="row"><label for="pass2"><?php _e( 'Repeat Password' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
|
||||||
<td>
|
<td>
|
||||||
<input name="pass2" type="password" id="pass2" autocomplete="new-password" spellcheck="false" aria-describedby="pass2-desc" />
|
<input type="password" name="pass2" id="pass2" autocomplete="new-password" spellcheck="false" aria-describedby="pass2-desc" />
|
||||||
<p class="description" id="pass2-desc"><?php _e( 'Type the password again.' ); ?></p>
|
<p class="description" id="pass2-desc"><?php _e( 'Type the password again.' ); ?></p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -958,7 +958,7 @@ switch ( $action ) {
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="wp-pwd">
|
<div class="wp-pwd">
|
||||||
<input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete="new-password" spellcheck="false" aria-describedby="pass-strength-result" />
|
<input type="password" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete="new-password" spellcheck="false" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" aria-describedby="pass-strength-result" />
|
||||||
|
|
||||||
<button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
|
<button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
|
||||||
<span class="dashicons dashicons-hidden" aria-hidden="true"></span>
|
<span class="dashicons dashicons-hidden" aria-hidden="true"></span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user