Changeset 5079 for trunk/includes/replies/capabilities.php
- Timestamp:
- 08/19/2013 07:20:19 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/replies/capabilities.php
r4995 r5079 126 126 $caps[] = 'do_not_allow'; 127 127 128 // User is author so allow edit 129 } elseif ( (int) $user_id === (int) $_post->post_author) {128 // User is author so allow edit if not in admin 129 } elseif ( !is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) { 130 130 $caps[] = $post_type->cap->edit_posts; 131 131
Note: See TracChangeset
for help on using the changeset viewer.