Ticket #61681: comment-template.patch
File comment-template.patch, 1.8 KB (added by , 8 weeks ago) |
---|
-
.php
old new 62 62 function comment_author( $comment_id = 0 ) { 63 63 $comment = get_comment( $comment_id ); 64 64 65 $comment_author = get_comment_author( $comment );65 $comment_author = get_comment_author( $comment->comment_ID ); 66 66 67 67 /** 68 68 * Filters the comment author's name for display. … … 230 230 $comment_id = ! empty( $comment->comment_ID ) ? $comment->comment_ID : (string) $comment_id; 231 231 232 232 $comment_author_url = get_comment_author_url( $comment ); 233 $comment_author = get_comment_author( $comment );233 $comment_author = get_comment_author( $comment_id ); 234 234 235 235 if ( empty( $comment_author_url ) || 'http://' === $comment_author_url ) { 236 236 $comment_author_link = $comment_author; … … 1027 1027 $parent = get_comment( $comment->comment_parent ); 1028 1028 if ( $parent ) { 1029 1029 $parent_link = esc_url( get_comment_link( $parent ) ); 1030 $name = get_comment_author( $parent );1030 $name = get_comment_author( $parent->comment_ID ); 1031 1031 1032 1032 $comment_text = sprintf( 1033 1033 /* translators: %s: Comment link. */ … … 1806 1806 'postid' => $post->ID, 1807 1807 'belowelement' => $args['add_below'] . '-' . $comment->comment_ID, 1808 1808 'respondelement' => $args['respond_id'], 1809 'replyto' => sprintf( $args['reply_to_text'], get_comment_author( $comment ) ),1809 'replyto' => sprintf( $args['reply_to_text'], get_comment_author( $comment->comment_ID ) ), 1810 1810 ); 1811 1811 1812 1812 $data_attribute_string = ''; … … 1830 1830 ) 1831 1831 ) . '#' . $args['respond_id'], 1832 1832 $data_attribute_string, 1833 esc_attr( sprintf( $args['reply_to_text'], get_comment_author( $comment ) ) ),1833 esc_attr( sprintf( $args['reply_to_text'], get_comment_author( $comment->comment_ID ) ) ), 1834 1834 $args['reply_text'] 1835 1835 ); 1836 1836 }