Ticket #10805: 10805.2.diff
File 10805.2.diff, 845 bytes (added by , 15 years ago) |
---|
-
capabilities.php
966 966 * @return bool 967 967 */ 968 968 function current_user_can( $capability ) { 969 if ( is_numeric( $capability ) ) 970 _deprecated_argument( __FUNCTION__, '2.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') ); 971 969 972 $current_user = wp_get_current_user(); 970 973 971 974 if ( empty( $current_user ) ) … … 987 990 * @return bool 988 991 */ 989 992 function author_can( $post, $capability ) { 993 if ( is_numeric( $capability ) ) 994 _deprecated_argument( __FUNCTION__, '2.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') ); 995 990 996 if ( !$post = get_post($post) ) 991 997 return false; 992 998