Changeset 11477
- Timestamp:
- 05/28/2009 08:35:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/user-edit.php
r11447 r11477 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 /**
Note: See TracChangeset
for help on using the changeset viewer.