From 9c6504120f41d4094ccbc8500185e0feca36712a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 8 Mar 2014 01:23:15 +0000 Subject: [PATCH] Pass $reassign parameter to 'delete_user' and 'deleted_user' actions. props genkisan. fixes #23057. Built from https://develop.svn.wordpress.org/trunk@27462 git-svn-id: http://core.svn.wordpress.org/trunk@27307 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/user.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php index 06b05ba76c..36e605ea02 100644 --- a/wp-admin/includes/user.php +++ b/wp-admin/includes/user.php @@ -282,9 +282,10 @@ function wp_delete_user( $id, $reassign = 'novalue' ) { * * @since 2.0.0 * - * @param int $id User ID. + * @param int $id ID of the user to delete. + * @param int|string $reassign ID of the user to reassign posts and links to. Default 'novalue'. */ - do_action( 'delete_user', $id ); + do_action( 'delete_user', $id, $reassign ); if ( 'novalue' === $reassign || null === $reassign ) { $post_types_to_delete = array(); @@ -353,9 +354,10 @@ function wp_delete_user( $id, $reassign = 'novalue' ) { * * @since 2.9.0 * - * @param int $id ID of the deleted user. + * @param int $id ID of the deleted user. + * @param int|string $reassign ID of the user to reassign posts and links to. Default 'novalue'. */ - do_action( 'deleted_user', $id ); + do_action( 'deleted_user', $id, $reassign ); return true; }