Make WordPress Core


Ignore:
Timestamp:
03/29/2010 08:35:06 PM (16 years ago)
Author:
wpmuguru
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/capabilities.php

    r13827 r13883  
    699699                global $wpdb;
    700700                $this->caps = array();
    701                 update_user_meta( $this->ID, $this->cap_key, '' );
    702                 update_user_meta( $this->ID, $wpdb->prefix . 'user_level', '' );
     701                delete_user_meta( $this->ID, $this->cap_key );
     702                delete_user_meta( $this->ID, $wpdb->prefix . 'user_level' );
    703703                $this->get_role_caps();
    704704        }
Note: See TracChangeset for help on using the changeset viewer.