diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 471a6468b..96453aabc 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -768,8 +768,7 @@ function get_edit_comment_link( $comment_id = 0 ) { function edit_comment_link( $link = 'Edit This', $before = '', $after = '' ) { global $comment, $post; - if ( $post->post_type == 'attachment' ) { - } elseif ( $post->post_type == 'page' ) { + if ( $post->post_type == 'page' ) { if ( !current_user_can( 'edit_page', $post->ID ) ) return; } else {