Make WordPress Core

Changeset 55145


Ignore:
Timestamp:
01/26/2023 06:10:54 PM (15 months ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/install.php

    r55094 r55145  
    141141                <div class="wp-pwd">
    142142                    <?php $initial_password = isset( $_POST['admin_password'] ) ? stripslashes( $_POST['admin_password'] ) : wp_generate_password( 18 ); ?>
    143                     <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" />
     143                    <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" />
    144144                    <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' ); ?>">
    145145                        <span class="dashicons dashicons-hidden"></span>
     
    161161            </th>
    162162            <td>
    163                 <input name="admin_password2" type="password" id="pass2" autocomplete="new-password" spellcheck="false" />
     163                <input type="password" name="admin_password2" id="pass2" autocomplete="new-password" spellcheck="false" />
    164164            </td>
    165165        </tr>
  • trunk/src/wp-admin/user-edit.php

    r55099 r55145  
    662662                                <th scope="row"><label for="pass2"><?php _e( 'Repeat New Password' ); ?></label></th>
    663663                                <td>
    664                                 <input name="pass2" type="password" id="pass2" class="regular-text" value="" autocomplete="new-password" spellcheck="false" aria-describedby="pass2-desc" />
     664                                <input type="password" name="pass2" id="pass2" class="regular-text" value="" autocomplete="new-password" spellcheck="false" aria-describedby="pass2-desc" />
    665665                                    <?php if ( IS_PROFILE_PAGE ) : ?>
    666666                                        <p class="description" id="pass2-desc"><?php _e( 'Type your new password again.' ); ?></p>
  • trunk/src/wp-admin/user-new.php

    r55094 r55145  
    585585        <th scope="row"><label for="pass2"><?php _e( 'Repeat Password' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
    586586        <td>
    587         <input name="pass2" type="password" id="pass2" autocomplete="new-password" spellcheck="false" aria-describedby="pass2-desc" />
     587        <input type="password" name="pass2" id="pass2" autocomplete="new-password" spellcheck="false" aria-describedby="pass2-desc" />
    588588        <p class="description" id="pass2-desc"><?php _e( 'Type the password again.' ); ?></p>
    589589        </td>
  • trunk/src/wp-login.php

    r55094 r55145  
    959959
    960960                <div class="wp-pwd">
    961                     <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" />
     961                    <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" />
    962962
    963963                    <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' ); ?>">
Note: See TracChangeset for help on using the changeset viewer.