Changeset 5852 for trunk/src/includes/replies/capabilities.php
- Timestamp:
- 07/15/2015 10:27:42 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/replies/capabilities.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/capabilities.php
r5834 r5852 166 166 $caps[] = 'moderate'; 167 167 168 // User is author so allow edit if not in admin 169 } elseif ( ! is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) { 170 $caps[] = $post_type->cap->delete_posts; 171 168 172 // Unknown so map to delete_others_posts 169 173 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)