Make WordPress Core

Ticket #23057: 23057.patch

File 23057.patch, 990 bytes (added by SergeyBiryukov, 12 years ago)

Refreshed, added docs

  • src/wp-admin/includes/user.php

     
    282282         *
    283283         * @since 2.0.0
    284284         *
    285          * @param int $id User ID.
     285         * @param int $id              ID of the user to delete.
     286         * @param int|string $reassign ID of the user to reassign posts and links to. Default 'novalue'.
    286287         */
    287         do_action( 'delete_user', $id );
     288        do_action( 'delete_user', $id, $reassign );
    288289
    289290        if ( 'novalue' === $reassign || null === $reassign ) {
    290291                $post_types_to_delete = array();
     
    353354         *
    354355         * @since 2.9.0
    355356         *
    356          * @param int $id ID of the deleted user.
     357         * @param int $id              ID of the deleted user.
     358         * @param int|string $reassign ID of the user to reassign posts and links to. Default 'novalue'.
    357359         */
    358         do_action( 'deleted_user', $id );
     360        do_action( 'deleted_user', $id, $reassign );
    359361
    360362        return true;
    361363}