Ticket #10805: 10805.diff
File 10805.diff, 688 bytes (added by , 15 years ago) |
---|
-
wp-includes/capabilities.php
699 699 * @return bool True, if user has capability; false, if user does not have capability. 700 700 */ 701 701 function has_cap( $cap ) { 702 if ( is_numeric( $cap ) ) 702 if ( is_numeric( $cap ) ) { 703 703 $cap = $this->translate_level_to_cap( $cap ); 704 _deprecated_function(__('Usage of User Levels by Plugins and Themes'), '2.0', __('Roles and Capabilities') ); 705 } 704 706 705 707 $args = array_slice( func_get_args(), 1 ); 706 708 $args = array_merge( array( $cap, $this->ID ), $args );