Users: Relocate the Password Reset feature to the Account Management section.

Follow-up to [50129].

Props mukesh27, audrasjb, hellofromTonya.
Fixes #52597.
Built from https://develop.svn.wordpress.org/trunk@50411


git-svn-id: http://core.svn.wordpress.org/trunk@50022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-02-23 14:21:05 +00:00
parent d46ee113a2
commit e0b66dd56c
2 changed files with 23 additions and 23 deletions

View File

@ -609,28 +609,6 @@ endif;
</td> </td>
</tr> </tr>
<?php endif; ?> <?php endif; ?>
<?php
// Allow admins to send reset password link
if ( ! IS_PROFILE_PAGE ) :
?>
<tr class="user-sessions-wrap hide-if-no-js">
<th><?php _e( 'Password Reset' ); ?></th>
<td>
<div class="generate-reset-link">
<button type="button" class="button button-secondary" id="generate-reset-link">
<?php _e( 'Send Reset Link' ); ?>
</button>
</div>
<p class="description">
<?php
/* translators: %s: User's display name. */
printf( __( 'Send %s a link to reset their password. This will not change their password, nor will it force a change.' ), esc_html( $profileuser->display_name ) );
?>
</p>
</td>
</tr>
<?php endif; ?>
<?php <?php
/** /**
* Filters the display of the password fields. * Filters the display of the password fields.
@ -692,6 +670,28 @@ endif;
</tr> </tr>
<?php endif; ?> <?php endif; ?>
<?php
// Allow admins to send reset password link.
if ( ! IS_PROFILE_PAGE ) :
?>
<tr class="user-sessions-wrap hide-if-no-js">
<th><?php _e( 'Password Reset' ); ?></th>
<td>
<div class="generate-reset-link">
<button type="button" class="button button-secondary" id="generate-reset-link">
<?php _e( 'Send Reset Link' ); ?>
</button>
</div>
<p class="description">
<?php
/* translators: %s: User's display name. */
printf( __( 'Send %s a link to reset their password. This will not change their password, nor will it force a change.' ), esc_html( $profileuser->display_name ) );
?>
</p>
</td>
</tr>
<?php endif; ?>
<?php <?php
if ( IS_PROFILE_PAGE && count( $sessions->get_all() ) === 1 ) : if ( IS_PROFILE_PAGE && count( $sessions->get_all() ) === 1 ) :
?> ?>

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.7-beta3-50410'; $wp_version = '5.7-beta3-50411';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.