src/Models/Comment.php
public function editComment($link = null, $before = '', $after = '')
    {
        // If the user cannot comment on this comment
        if (!current_user_can('edit_comment', $this->id())) {
            return;
        }
        // If the link is empty
        if (null === $link) {
            $link = __('Edit This');
        }
        // Retrieve the comment link
        $link = '<a class="comment-edit-link" href="' . get_edit_comment_link($this->id()) . '">' . $link . '</a>';
        return $before . apply_filters('edit_comment_link', $link, $this->id()) . $after;
    }
public function editComment($link = null, $before = '', $after = '')
    {
        // If the user cannot comment on this comment
        if (!current_user_can('edit_comment', $this->id())) {
            return;
        }
        // If the link is empty
        if (null === $link) {
            $link = __('Edit This');
        }
        // Retrieve the comment link
        $link = '<a class="comment-edit-link" href="' . get_edit_comment_link($this->id()) . '">' . $link . '</a>';
        return $before . apply_filters('edit_comment_link', $link, $this->id()) . $after;
    }
public function editComment ( $ link = null , $ before = '' , $ after = '' ) { // If the user cannot comment on this comment if ( ! current_user_can ( 'edit_comment' , $ this -> id ( ) ) ) { return ; } // If the link is empty if ( null === $ link ) { $ link = __ ( 'Edit This' ) ; } // Retrieve the comment link $ link = '<a class="comment-edit-link" href="' . get_edit_comment_link ( $ this -> id ( ) ) . '">' . $ link . '</a>' ; return $ before . apply_filters ( 'edit_comment_link' , $ link , $ this -> id ( ) ) . $ after ; }
Retrieve the comment editing link

@access public
@link https://core.trac.wordpress.org/browser/tags/3.9.1/src/wp-includes/link-template.php#L1296
@param string $link Optional. Anchor text.
@param string $before Optional. Display before edit link.
@param string $after Optional. Display after edit link.
@return string
Retrieve the comment editing link