WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/11/2008 07:25:50 PM (12 years ago)
Author:
ryan
Message:

wp_list_comments() and threaded comment support. First cut. see #7635

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r8758 r8869  
    532532}
    533533
    534 function edit_comment_link( $link = 'Edit This', $before = '', $after = '' ) {
     534function edit_comment_link( $link = 'Edit This', $before = '', $after = '', $echo = true ) {
    535535    global $comment, $post;
    536536
     
    545545
    546546    $link = '<a href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . __( 'Edit comment' ) . '">' . $link . '</a>';
    547     echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after;
     547    $link = $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after;
     548    if ( $echo )
     549        echo $link;
     550    else
     551        return $link;
    548552}
    549553
Note: See TracChangeset for help on using the changeset viewer.