Changeset 34008 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 09/10/2015 06:09:15 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r33963 r34008 43 43 * @param WP_Comment $comment The comment object. 44 44 */ 45 return apply_filters( 'get_comment_author', $author, $comment _ID, $comment );45 return apply_filters( 'get_comment_author', $author, $comment->comment_ID, $comment ); 46 46 } 47 47 … … 55 55 */ 56 56 function comment_author( $comment_ID = 0 ) { 57 $author = get_comment_author( $comment_ID ); 57 $comment = get_comment( $comment_ID ); 58 $author = get_comment_author( $comment ); 58 59 59 60 /** … … 66 67 * @param int $comment_ID The comment ID. 67 68 */ 68 echo apply_filters( 'comment_author', $author, $comment _ID );69 echo apply_filters( 'comment_author', $author, $comment->comment_ID ); 69 70 } 70 71 … … 91 92 * @param WP_Comment $comment The comment object. 92 93 */ 93 return apply_filters( 'get_comment_author_email', $comment->comment_author_email, $comment _ID, $comment );94 return apply_filters( 'get_comment_author_email', $comment->comment_author_email, $comment->comment_ID, $comment ); 94 95 } 95 96 … … 109 110 */ 110 111 function comment_author_email( $comment_ID = 0 ) { 111 $author_email = get_comment_author_email( $comment_ID ); 112 $comment = get_comment( $comment_ID ); 113 $author_email = get_comment_author_email( $comment ); 112 114 113 115 /** … … 120 122 * @param int $comment_ID The comment ID. 121 123 */ 122 echo apply_filters( 'author_email', $author_email, $comment _ID );124 echo apply_filters( 'author_email', $author_email, $comment->comment_ID ); 123 125 } 124 126 … … 200 202 */ 201 203 function get_comment_author_link( $comment_ID = 0 ) { 202 $url = get_comment_author_url( $comment_ID ); 203 $author = get_comment_author( $comment_ID ); 204 $comment = get_comment( $comment_ID ); 205 $url = get_comment_author_url( $comment ); 206 $author = get_comment_author( $comment ); 204 207 205 208 if ( empty( $url ) || 'http://' == $url ) … … 219 222 * @param int $comment_ID The comment ID. 220 223 */ 221 return apply_filters( 'get_comment_author_link', $return, $author, $comment _ID );224 return apply_filters( 'get_comment_author_link', $return, $author, $comment->comment_ID ); 222 225 } 223 226 … … 256 259 * @param WP_Comment $comment The comment object. 257 260 */ 258 return apply_filters( 'get_comment_author_IP', $comment->comment_author_IP, $comment _ID, $comment );261 return apply_filters( 'get_comment_author_IP', $comment->comment_author_IP, $comment->comment_ID, $comment ); 259 262 } 260 263 … … 295 298 * @param WP_Comment $comment The comment object. 296 299 */ 297 return apply_filters( 'get_comment_author_url', $url, $comment _ID, $comment );300 return apply_filters( 'get_comment_author_url', $url, $comment->comment_ID, $comment ); 298 301 } 299 302 … … 307 310 */ 308 311 function comment_author_url( $comment_ID = 0 ) { 309 $author_url = get_comment_author_url( $comment_ID ); 312 $comment = get_comment( $comment_ID ); 313 $author_url = get_comment_author_url( $comment ); 310 314 311 315 /** … … 318 322 * @param int $comment_ID The comment ID. 319 323 */ 320 echo apply_filters( 'comment_url', $author_url, $comment _ID );324 echo apply_filters( 'comment_url', $author_url, $comment->comment_ID ); 321 325 } 322 326 … … 485 489 * @param int|WP_Post $post_id The post ID or WP_Post object. 486 490 */ 487 return apply_filters( 'comment_class', $classes, $class, $comment _id, $comment, $post_id );491 return apply_filters( 'comment_class', $classes, $class, $comment->comment_ID, $comment, $post_id ); 488 492 } 489 493 … … 571 575 * @param WP_Comment $comment The comment object. 572 576 */ 573 return apply_filters( 'get_comment_excerpt', $excerpt, $comment _ID, $comment );577 return apply_filters( 'get_comment_excerpt', $excerpt, $comment->comment_ID, $comment ); 574 578 } 575 579 … … 583 587 */ 584 588 function comment_excerpt( $comment_ID = 0 ) { 585 $comment_excerpt = get_comment_excerpt($comment_ID); 589 $comment = get_comment( $comment_ID ); 590 $comment_excerpt = get_comment_excerpt( $comment ); 586 591 587 592 /** … … 594 599 * @param int $comment_ID The comment ID. 595 600 */ 596 echo apply_filters( 'comment_excerpt', $comment_excerpt, $comment _ID );601 echo apply_filters( 'comment_excerpt', $comment_excerpt, $comment->comment_ID ); 597 602 } 598 603 … … 933 938 * @param WP_Comment $comment The comment object. 934 939 */ 935 return apply_filters( 'get_comment_type', $comment->comment_type, $comment _ID, $comment );940 return apply_filters( 'get_comment_type', $comment->comment_type, $comment->comment_ID, $comment ); 936 941 } 937 942
Note: See TracChangeset
for help on using the changeset viewer.