Ticket #23377: 23377.patch
| File 23377.patch, 577 bytes (added by , 13 years ago) |
|---|
-
wp-includes/capabilities.php
993 993 function map_meta_cap( $cap, $user_id ) { 994 994 $args = array_slice( func_get_args(), 2 ); 995 995 $caps = array(); 996 996 997 if ( ! isset( $args[0] ) ) { 998 global $post; 999 if ( is_object( $post ) ) { 1000 $args[0] = $post->ID; 1001 } 1002 else { 1003 $args[0] = $_POST['post_ID']; 1004 } 1005 } 1006 997 1007 switch ( $cap ) { 998 1008 case 'remove_user': 999 1009 $caps[] = 'remove_users';