WordPress.org

Make WordPress Core

Ticket #21786: 21786.patch

File 21786.patch, 383 bytes (added by johnjamesjacoby, 20 months ago)
  • wp-includes/capabilities.php

     
    868868         * @param string $cap Capability name. 
    869869         */ 
    870870        function remove_cap( $cap ) { 
    871                 if ( empty( $this->caps[$cap] ) ) 
     871                if ( ! isset( $this->caps[$cap] ) ) 
    872872                        return; 
    873873                unset( $this->caps[$cap] ); 
    874874                update_user_meta( $this->ID, $this->cap_key, $this->caps );