Users: Pass the array of user IDs being deleted to the delete_user_form action hook in two places.
Also updates documentation for the first parameter, `$current_user`, to clarify that it holds the `WP_User` object for the _current_ user, not the one being deleted. Props usermrpapa. Fixes #35063. Built from https://develop.svn.wordpress.org/trunk@36640 git-svn-id: http://core.svn.wordpress.org/trunk@36607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1088,7 +1088,7 @@ function confirm_delete_users( $users ) {
|
||||
</table>
|
||||
<?php
|
||||
/** This action is documented in wp-admin/users.php */
|
||||
do_action( 'delete_user_form', $current_user );
|
||||
do_action( 'delete_user_form', $current_user, $allusers );
|
||||
|
||||
if ( 1 == count( $users ) ) : ?>
|
||||
<p><?php _e( 'Once you hit “Confirm Deletion”, the user will be permanently removed.' ); ?></p>
|
||||
|
||||
Reference in New Issue
Block a user