mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
Add wp_revoke_user() and WP_User::remove_all_caps() to help those doing multi blog stuff.
git-svn-id: https://develop.svn.wordpress.org/trunk@3705 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -274,6 +274,13 @@ function wp_delete_user($id, $reassign = 'novalue') {
|
||||
return true;
|
||||
}
|
||||
|
||||
function wp_revoke_user($id) {
|
||||
$id = (int) $id;
|
||||
|
||||
$user = new WP_User($id);
|
||||
$user->remove_all_caps();
|
||||
}
|
||||
|
||||
function get_link($link_id, $output = OBJECT) {
|
||||
global $wpdb;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user