Make WordPress Core


Ignore:
Timestamp:
02/23/2016 05:41:15 PM (9 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ms.php

    r36569 r36640  
    10891089    <?php
    10901090    /** This action is documented in wp-admin/users.php */
    1091     do_action( 'delete_user_form', $current_user );
     1091    do_action( 'delete_user_form', $current_user, $allusers );
    10921092
    10931093    if ( 1 == count( $users ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.