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:
parent
d46ee113a2
commit
e0b66dd56c
|
@ -609,28 +609,6 @@ endif;
|
|||
</td>
|
||||
</tr>
|
||||
<?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
|
||||
/**
|
||||
* Filters the display of the password fields.
|
||||
|
@ -690,6 +668,28 @@ endif;
|
|||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<?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
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
Loading…
Reference in New Issue