Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #33154, comment 7


Ignore:
Timestamp:
08/07/2015 03:06:34 AM (9 years ago)
Author:
dd32
Comment:

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.
     1Personally 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.
    22
    33However, failing to be able to edit a comment where the post doesn't exist does seem like a legitimate bug.