Make WordPress Core

Ticket #20372: 20372.diff

File 20372.diff, 586 bytes (added by ryan, 13 years ago)
  • wp-includes/capabilities.php

     
    599599        }
    600600
    601601        /**
     602         * Determine whether the user exists in the database.
     603         *
     604         * @since 3.4.0
     605         * @access public
     606         *
     607         * @return bool True if user exists in the database, false if not.
     608         */
     609        function exists() {
     610                return ! empty( $this->ID );
     611        }
     612
     613        /**
    602614         * Retrieve the value of a property or meta key.
    603615         *
    604616         * Retrieves from the users and usermeta table.