- Timestamp:
- 02/01/2021 10:11:46 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r49944 r50129 275 275 } 276 276 277 // Add a password reset link to the bulk actions dropdown. 278 if ( current_user_can( 'edit_users' ) ) { 279 $actions['resetpassword'] = __( 'Send password reset' ); 280 } 281 277 282 return $actions; 278 283 } … … 468 473 __( 'View' ) 469 474 ); 475 } 476 477 // Add a link to send the user a reset password link by email. 478 if ( get_current_user_id() !== $user_object->ID && current_user_can( 'edit_user', $user_object->ID ) ) { 479 $actions['resetpassword'] = "<a class='resetpassword' href='" . wp_nonce_url( "users.php?action=resetpassword&users=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Send password reset' ) . '</a>'; 470 480 } 471 481
Note: See TracChangeset
for help on using the changeset viewer.