[wp-trac] [WordPress Trac] #10520: edit_comment_link() logic faulty

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 30 14:16:04 UTC 2009


#10520: edit_comment_link() logic faulty
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:                             
     Type:  defect (bug)  |      Status:  new                        
 Priority:  normal        |   Milestone:  2.8.3                      
Component:  Template      |     Version:  2.8.1                      
 Severity:  normal        |    Keywords:  edit_comment_link has-patch
--------------------------+-------------------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10520>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list