Make WordPress Core

Changeset 51878


Ignore:
Timestamp:
10/01/2021 01:47:59 PM (3 years ago)
Author:
hellofromTonya
Message:

App Passwords: Remove placeholder from the app password name input field.

In [49294, 49752], the placeholder attribute changed to "WordPress App on My Phone". This change causes confusion as the field can be used in a variety of ways and is not limited to a phone.

Given a label exists for each field and clearly identifies its purpose, this commit removes the placeholder attribute from the input field.

Follow-up to [49109], [49294], [49752].

Props seedsca, audrasjb, joedolson, rehanali.
Fixes #54047.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r51475 r51878  
    226226                <div class="form-field">
    227227                    <label for="app_name"><?php _e( 'New Application Password Name' ); ?></label>
    228                     <input type="text" id="app_name" name="app_name" value="<?php echo esc_attr( $app_name ); ?>" placeholder="<?php esc_attr_e( 'WordPress App on My Phone' ); ?>" required />
     228                    <input type="text" id="app_name" name="app_name" value="<?php echo esc_attr( $app_name ); ?>" required />
    229229                </div>
    230230
  • trunk/src/wp-admin/user-edit.php

    r51837 r51878  
    768768                <div class="form-field">
    769769                    <label for="new_application_password_name"><?php _e( 'New Application Password Name' ); ?></label>
    770                     <input type="text" size="30" id="new_application_password_name" name="new_application_password_name" placeholder="<?php esc_attr_e( 'WordPress App on My Phone' ); ?>" class="input" aria-required="true" aria-describedby="new_application_password_name_desc" />
     770                    <input type="text" size="30" id="new_application_password_name" name="new_application_password_name" class="input" aria-required="true" aria-describedby="new_application_password_name_desc" />
    771771                    <p class="description" id="new_application_password_name_desc"><?php _e( 'Required to create an Application Password, but not to update the user.' ); ?></p>
    772772                </div>
Note: See TracChangeset for help on using the changeset viewer.