Make WordPress Core

Changeset 27462


Ignore:
Timestamp:
03/08/2014 01:22:51 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Pass $reassign parameter to 'delete_user' and 'deleted_user' actions.

props genkisan.
fixes #23057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/user.php

    r27260 r27462  
    283283     * @since 2.0.0
    284284     *
    285      * @param int $id User ID.
    286      */
    287     do_action( 'delete_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'.
     287     */
     288    do_action( 'delete_user', $id, $reassign );
    288289
    289290    if ( 'novalue' === $reassign || null === $reassign ) {
     
    354355     * @since 2.9.0
    355356     *
    356      * @param int $id ID of the deleted user.
    357      */
    358     do_action( 'deleted_user', $id );
     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'.
     359     */
     360    do_action( 'deleted_user', $id, $reassign );
    359361
    360362    return true;
Note: See TracChangeset for help on using the changeset viewer.