delete user cap in remove_all_caps(), props ocean90, see #12711

git-svn-id: http://svn.automattic.com/wordpress/trunk@13883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru
2010-03-29 20:35:06 +00:00
parent 3a69eacbbe
commit fbf3ee6abc
2 changed files with 6 additions and 5 deletions

View File

@@ -698,8 +698,8 @@ class WP_User {
function remove_all_caps() {
global $wpdb;
$this->caps = array();
update_user_meta( $this->ID, $this->cap_key, '' );
update_user_meta( $this->ID, $wpdb->prefix . 'user_level', '' );
delete_user_meta( $this->ID, $this->cap_key );
delete_user_meta( $this->ID, $wpdb->prefix . 'user_level' );
$this->get_role_caps();
}