Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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.
@PirataNervo, @Stefan-ST any comments?
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);