WordPress.org

Make WordPress Core

Ticket #35063: users2.patch

File users2.patch, 1.1 KB (added by usermrpapa, 5 years ago)

updated patch

  • wp-admin/includes/ms.php

     
    10741074        </table>
    10751075        <?php
    10761076        /** This action is documented in wp-admin/users.php */
    1077         do_action( 'delete_user_form', $current_user );
     1077        do_action( 'delete_user_form', $current_user, $allusers );
    10781078
    10791079        if ( 1 == count( $users ) ) : ?>
    10801080                <p><?php _e( 'Once you hit &#8220;Confirm Deletion&#8221;, the user will be permanently removed.' ); ?></p>
  • wp-admin/users.php

     
    283283         * @since 4.0.0
    284284         *
    285285         * @param WP_User $current_user WP_User object for the user being deleted.
     286         * @param array $userids Array of IDs for users being deleted.
    286287         */
    287         do_action( 'delete_user_form', $current_user );
     288        do_action( 'delete_user_form', $current_user, $userids );
    288289        ?>
    289290        <input type="hidden" name="action" value="dodelete" />
    290291        <?php submit_button( __('Confirm Deletion'), 'primary' ); ?>