WordPress.org

Make WordPress Core

Ticket #27230: delete-user.patch

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

     
    7777                }
    7878        }
    7979
     80    /**
     81     * Fires at the end of the delete users form prior to the confirm button for plugins to add items to the form.
     82     *
     83     * @since 4.0
     84     */
     85    do_action( 'delete_user_form', $current_user );
     86
    8087        submit_button( __('Confirm Deletion'), 'delete' );
    8188        ?>
    8289        </form>
  • wp-admin/users.php

     
    248248                <?php echo '<label for="delete_option1">' . __( 'Attribute all content to:' ) . '</label> ';
    249249                wp_dropdown_users( array( 'name' => 'reassign_user', 'exclude' => array_diff( $userids, array($current_user->ID) ) ) ); ?></li>
    250250        </ul></fieldset>
     251
     252<?php
     253    /**
     254     * Fires at the end of the delete users form prior to the confirm button for plugins to add items to the form
     255     *
     256     * @since 4.0
     257     */
     258    do_action( 'delete_user_form', $current_user );
     259?>
    251260        <input type="hidden" name="action" value="dodelete" />
    252261        <?php submit_button( __('Confirm Deletion'), 'secondary' ); ?>
    253262<?php else : ?>