Make WordPress Core


Ignore:
Timestamp:
11/05/2011 01:35:48 PM (15 years ago)
Author:
nacin
Message:

Remove dead code. empty() will catch anything that equals false.

File:
1 edited

Legend:

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

    r18956 r19171  
    859859                $capabilities['exist'] = true; // Everyone is allowed to exist
    860860                foreach ( (array) $caps as $cap ) {
    861                         //echo "Checking cap $cap<br />";
    862                         if ( empty( $capabilities[$cap] ) || !$capabilities[$cap] )
     861                        if ( empty( $capabilities[ $cap ] ) )
    863862                                return false;
    864863                }
Note: See TracChangeset for help on using the changeset viewer.