Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve the method for user deletion #408
The origianl function for deleting one use did, however there some places within the 1.6 code that deletes multiple users at once (prune users, for example).
I can see your way being more friendly to the data-handler and I agree with you, but I did it this way to avoid possible extensive use of resources or similar.
I think that is what it already does:
$this->delete_uids = array_map('intval', (array)$delete_uids);
The following are valid uses of the new method:
$data_handler->delete_user( integer $uid); $data_handler->delete_user( array $uids); $data_handler->delete_user( integer $uid, boolean $prune_content); $data_handler->delete_user( array $uids, boolean $prune_content);