WordPress.org

Make WordPress Core

Changeset 21940


Ignore:
Timestamp:
09/21/2012 01:41:43 PM (9 years ago)
Author:
ryan
Message:

Allow remove_cap() to unset a negative capability. Props johnjamesjacoby. fixes #21786

File:
1 edited

Legend:

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

    r21866 r21940  
    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] );
Note: See TracChangeset for help on using the changeset viewer.