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

props genkisan.
fixes #23057.

git-svn-id: https://develop.svn.wordpress.org/trunk@27462 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-03-08 01:22:51 +00:00
parent 65ac1e6f2d
commit e925502c25
1 changed files with 6 additions and 4 deletions

View File

@ -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();
@ -354,8 +355,9 @@ function wp_delete_user( $id, $reassign = 'novalue' ) {
* @since 2.9.0
*
* @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;
}