mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Users: enable admins to send users a reset password link.
Add a feature so Admins can send users a 'password reset' email. This doesn't change the password or force a password change. It only emails the user the password reset link. The feature appears in several places: * A "Send Reset Link" button on user profile screen. * A "Send password reset" option in the user list bulk action dropdown. * A "Send password reset" quick action when hovering over a username in the user list. Props Ipstenu, DrewAPicture, eventualo, wonderboymusic, knutsp, ericlewis, afercia, JoshuaWold, johnbillion, paaljoachim, hedgefield. Fixes #34281. git-svn-id: https://develop.svn.wordpress.org/trunk@50129 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -609,6 +609,27 @@ 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: 1: 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
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user