WordPress.org

Make WordPress Core

Ticket #27230: delete-form.patch

File delete-form.patch, 674 bytes (added by usermrpapa, 6 years ago)

patch for delete user form action

  • wp-admin/users.php

     
    249249                wp_dropdown_users( array( 'name' => 'reassign_user', 'exclude' => array_diff( $userids, array($current_user->ID) ) ) ); ?></li>
    250250        </ul></fieldset>
    251251        <input type="hidden" name="action" value="dodelete" />
     252<?php
     253    // allow plugins to add items to delete form
     254    do_action( 'delete_user_form', $current_user );
     255?>
    252256        <?php submit_button( __('Confirm Deletion'), 'secondary' ); ?>
    253257<?php else : ?>
    254258        <p><?php _e('There are no valid users selected for deletion.'); ?></p>