WordPress.org

Make WordPress Core

Changeset 28885


Ignore:
Timestamp:
06/28/2014 04:42:24 AM (6 years ago)
Author:
wonderboymusic
Message:

Add new action 'delete_user_form' in wp-admin/users.php and wp-admin/network/users.php.

Props SergeyBiryukov, usermrpapa.
Fixes #27230.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/users.php

    r28500 r28885  
    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    ?>
  • trunk/src/wp-admin/users.php

    r28500 r28885  
    245245        wp_dropdown_users( array( 'name' => 'reassign_user', 'exclude' => array_diff( $userids, array($current_user->ID) ) ) ); ?></li>
    246246    </ul></fieldset>
     247    <?php
     248    /**
     249     * Fires at the end of the delete users form prior to the confirm button.
     250     *
     251     * @since 4.0.0
     252     *
     253     * @param WP_User $current_user WP_User object for the user being deleted.
     254     */
     255    do_action( 'delete_user_form', $current_user );
     256    ?>
    247257    <input type="hidden" name="action" value="dodelete" />
    248258    <?php submit_button( __('Confirm Deletion'), 'secondary' ); ?>
Note: See TracChangeset for help on using the changeset viewer.