Ticket #8433: 8433.2.diff
| File 8433.2.diff, 687 bytes (added by , 17 years ago) |
|---|
-
wp-admin/user-edit.php
39 39 wp_die( __('Invalid user ID.') ); 40 40 } 41 41 42 $all_post_ types = apply_filters('all_post_types', array('post', 'page'));42 $all_post_caps = array('posts', 'pages'); 43 43 $user_can_edit = false; 44 foreach ( $all_post_ types as $post_type)45 $user_can_edit |= current_user_can("edit_$post_ type");44 foreach ( $all_post_caps as $post_cap ) 45 $user_can_edit |= current_user_can("edit_$post_cap"); 46 46 47 47 /** 48 48 * Optional SSL preference that can be turned on by hooking to the 'personal_options' action.