Make WordPress Core

Ticket #10805: 10805.diff

File 10805.diff, 688 bytes (added by dd32, 15 years ago)
  • wp-includes/capabilities.php

     
    699699         * @return bool True, if user has capability; false, if user does not have capability.
    700700         */
    701701        function has_cap( $cap ) {
    702                 if ( is_numeric( $cap ) )
     702                if ( is_numeric( $cap ) ) {
    703703                        $cap = $this->translate_level_to_cap( $cap );
     704                        _deprecated_function(__('Usage of User Levels by Plugins and Themes'), '2.0', __('Roles and Capabilities') );
     705                }
    704706
    705707                $args = array_slice( func_get_args(), 1 );
    706708                $args = array_merge( array( $cap, $this->ID ), $args );