Changes between Initial Version and Version 1 of Ticket #33154, comment 7
- Timestamp:
- 08/07/2015 03:06:34 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33154, comment 7
initial v1 1 Personally I see it as a bug that `current_user_can( 'edit_post', false)` would return anything other than `false`. If you want a primitive capability, you'd use `edit_posts`, calling `edit_post` without providing a valid post should always be false.1 Personally I see it as a bug that `current_user_can( 'edit_post', $not_a_post_id )` would return anything other than `false`. If you want a primitive capability, you'd use `edit_posts`, calling `edit_post` without providing a valid post should always be false. 2 2 3 3 However, failing to be able to edit a comment where the post doesn't exist does seem like a legitimate bug.