Ticket #21786: 21786.patch
File 21786.patch, 383 bytes (added by , 12 years ago) |
---|
-
wp-includes/capabilities.php
868 868 * @param string $cap Capability name. 869 869 */ 870 870 function remove_cap( $cap ) { 871 if ( empty( $this->caps[$cap] ) )871 if ( ! isset( $this->caps[$cap] ) ) 872 872 return; 873 873 unset( $this->caps[$cap] ); 874 874 update_user_meta( $this->ID, $this->cap_key, $this->caps );