### Eclipse Workspace Patch 1.0
#P WordPress_Trunk
|
|
|
32 | 32 | } else { |
33 | 33 | $author = $comment->comment_author; |
34 | 34 | } |
35 | | return apply_filters('get_comment_author', $author); |
| 35 | return apply_filters('get_comment_author', $author, $comment_ID, $comment); |
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
… |
… |
|
44 | 44 | * @param int $comment_ID The ID of the comment for which to print the author. Optional. |
45 | 45 | */ |
46 | 46 | function comment_author( $comment_ID = 0 ) { |
47 | | $author = apply_filters('comment_author', get_comment_author( $comment_ID ) ); |
| 47 | $author = apply_filters('comment_author', get_comment_author( $comment_ID ), $comment_ID ); |
48 | 48 | echo $author; |
49 | 49 | } |
50 | 50 | |
… |
… |
|
60 | 60 | */ |
61 | 61 | function get_comment_author_email( $comment_ID = 0 ) { |
62 | 62 | $comment = get_comment( $comment_ID ); |
63 | | return apply_filters('get_comment_author_email', $comment->comment_author_email); |
| 63 | return apply_filters('get_comment_author_email', $comment->comment_author_email, $comment_ID); |
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
… |
… |
|
78 | 78 | * @param int $comment_ID The ID of the comment for which to print the author's email. Optional. |
79 | 79 | */ |
80 | 80 | function comment_author_email( $comment_ID = 0 ) { |
81 | | echo apply_filters('author_email', get_comment_author_email( $comment_ID ) ); |
| 81 | echo apply_filters('author_email', get_comment_author_email( $comment_ID ), $comment_ID ); |
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
… |
… |
|
153 | 153 | $return = $author; |
154 | 154 | else |
155 | 155 | $return = "<a href='$url' rel='external nofollow' class='url'>$author</a>"; |
156 | | return apply_filters('get_comment_author_link', $return); |
| 156 | return apply_filters('get_comment_author_link', $return, $comment_ID); |
157 | 157 | } |
158 | 158 | |
159 | 159 | /** |
… |
… |
|
180 | 180 | */ |
181 | 181 | function get_comment_author_IP( $comment_ID = 0 ) { |
182 | 182 | $comment = get_comment( $comment_ID ); |
183 | | return apply_filters('get_comment_author_IP', $comment->comment_author_IP); |
| 183 | return apply_filters('get_comment_author_IP', $comment->comment_author_IP, $comment_ID); |
184 | 184 | } |
185 | 185 | |
186 | 186 | /** |
… |
… |
|
208 | 208 | $comment = get_comment( $comment_ID ); |
209 | 209 | $url = ('http://' == $comment->comment_author_url) ? '' : $comment->comment_author_url; |
210 | 210 | $url = esc_url( $url, array('http', 'https') ); |
211 | | return apply_filters('get_comment_author_url', $url); |
| 211 | return apply_filters('get_comment_author_url', $url, $comment_ID, $comment); |
212 | 212 | } |
213 | 213 | |
214 | 214 | /** |
… |
… |
|
221 | 221 | * @param int $comment_ID The ID of the comment for which to print the author's URL. Optional. |
222 | 222 | */ |
223 | 223 | function comment_author_url( $comment_ID = 0 ) { |
224 | | echo apply_filters('comment_url', get_comment_author_url( $comment_ID )); |
| 224 | echo apply_filters('comment_url', get_comment_author_url( $comment_ID ), $comment_ID); |
225 | 225 | } |
226 | 226 | |
227 | 227 | /** |
… |
… |
|
375 | 375 | $date = mysql2date(get_option('date_format'), $comment->comment_date); |
376 | 376 | else |
377 | 377 | $date = mysql2date($d, $comment->comment_date); |
378 | | return apply_filters('get_comment_date', $date, $d); |
| 378 | return apply_filters('get_comment_date', $date, $d, $comment_ID); |
379 | 379 | } |
380 | 380 | |
381 | 381 | /** |
… |
… |
|
420 | 420 | $excerpt .= $blah[$i] . ' '; |
421 | 421 | } |
422 | 422 | $excerpt .= ($use_dotdotdot) ? '...' : ''; |
423 | | return apply_filters('get_comment_excerpt', $excerpt); |
| 423 | return apply_filters('get_comment_excerpt', $excerpt, $comment_ID); |
424 | 424 | } |
425 | 425 | |
426 | 426 | /** |
… |
… |
|
432 | 432 | * @param int $comment_ID The ID of the comment for which to print the excerpt. Optional. |
433 | 433 | */ |
434 | 434 | function comment_excerpt( $comment_ID = 0 ) { |
435 | | echo apply_filters('comment_excerpt', get_comment_excerpt($comment_ID) ); |
| 435 | echo apply_filters('comment_excerpt', get_comment_excerpt($comment_ID), $comment_ID ); |
436 | 436 | } |
437 | 437 | |
438 | 438 | /** |
… |
… |
|
662 | 662 | if ( '' == $comment->comment_type ) |
663 | 663 | $comment->comment_type = 'comment'; |
664 | 664 | |
665 | | return apply_filters('get_comment_type', $comment->comment_type); |
| 665 | return apply_filters('get_comment_type', $comment->comment_type, $comment_ID, $comment); |
666 | 666 | } |
667 | 667 | |
668 | 668 | /** |