#10520 closed defect (bug) (fixed)
edit_comment_link() logic faulty
Reported by: | filosofo | Owned by: | |
---|---|---|---|
Milestone: | 2.8.3 | Priority: | normal |
Severity: | normal | Version: | 2.8.1 |
Component: | Template | Keywords: | edit_comment_link has-patch |
Focuses: | Cc: |
Description
The current logic of edit_comment_link()
prints an edit link for everyone on comments for attachments.
The default capability check of
if ( !current_user_can( 'edit_post', $post->ID ) )
should be used instead, because it works with attachments as well as posts.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [11751]) Don't show edit link for comments when the user cannot edit them, props filosofo, fixes #10520 for 2.8