Changeset 14585 for trunk/wp-admin/includes/user.php
- Timestamp:
- 05/12/2010 08:45:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/user.php
r14428 r14585 250 250 $post_type_obj = get_post_type_object($post_type); 251 251 252 if ( ! $user->has_cap($post_type_obj-> edit_others_cap) ) {253 if ( $user->has_cap($post_type_obj-> edit_type_cap) || ! $exclude_zeros )252 if ( ! $user->has_cap($post_type_obj->cap->edit_other_posts) ) { 253 if ( $user->has_cap($post_type_obj->cap->edit_posts) || ! $exclude_zeros ) 254 254 return array($user->id); 255 255 else
Note: See TracChangeset
for help on using the changeset viewer.