Users: Remove unwanted aria-describedby attribute in User Edit.
This changeset removes the `aria-describedby` attribute when not editing the current user, as no description paragraph is associated. Props kkmuffme, audrasjb, faisal03, shailu25, nandow, eddystile, marineevain, qhaensler, virginienacci. Fixes #63006. Built from https://develop.svn.wordpress.org/trunk@59978 git-svn-id: http://core.svn.wordpress.org/trunk@59320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -545,11 +545,13 @@ switch ( $action ) {
|
||||
<tr class="user-email-wrap">
|
||||
<th><label for="email"><?php _e( 'Email' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
|
||||
<td>
|
||||
<input type="email" name="email" id="email" aria-describedby="email-description" value="<?php echo esc_attr( $profile_user->user_email ); ?>" class="regular-text ltr" />
|
||||
<?php if ( $profile_user->ID === $current_user->ID ) : ?>
|
||||
<input type="email" name="email" id="email" aria-describedby="email-description" value="<?php echo esc_attr( $profile_user->user_email ); ?>" class="regular-text ltr" />
|
||||
<p class="description" id="email-description">
|
||||
<?php _e( 'If you change this, an email will be sent at your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>' ); ?>
|
||||
</p>
|
||||
<?php else : ?>
|
||||
<input type="email" name="email" id="email" value="<?php echo esc_attr( $profile_user->user_email ); ?>" class="regular-text ltr" />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-beta2-59976';
|
||||
$wp_version = '6.8-beta2-59978';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user