WordPress.org

Make WordPress Core

Ticket #27230: delete-user3.patch

File delete-user3.patch, 1.2 KB (added by usermrpapa, 6 years ago)
  • wp-admin/network/users.php

     
    7777                }
    7878        }
    7979
     80    /** This action is documented in wp-admin/users.php */
     81    do_action( 'delete_user_form', $current_user );
     82
    8083        submit_button( __('Confirm Deletion'), 'delete' );
    8184        ?>
    8285        </form>
  • wp-admin/users.php

     
    244244                <?php echo '<label for="delete_option1">' . __( 'Attribute all content to:' ) . '</label> ';
    245245                wp_dropdown_users( array( 'name' => 'reassign_user', 'exclude' => array_diff( $userids, array($current_user->ID) ) ) ); ?></li>
    246246        </ul></fieldset>
     247
     248<?php
     249    /**
     250     * Fires at the end of the delete users form prior to the confirm button
     251     *
     252     * @param WP_User $current_user WP_User object for the user being deleted.
     253     *
     254     * @since 4.0.0
     255     */
     256    do_action( 'delete_user_form', $current_user );
     257?>
    247258        <input type="hidden" name="action" value="dodelete" />
    248259        <?php submit_button( __('Confirm Deletion'), 'secondary' ); ?>
    249260<?php else : ?>