Ticket #36571: 36571.diff
File 36571.diff, 2.7 KB (added by , 8 years ago) |
---|
-
src/wp-includes/comment-template.php
138 138 * address and use it for their own means good and bad. 139 139 * 140 140 * @since 0.71 141 * @since 4.6.0 The `$comment` argument was added. 141 142 * 142 * @param string $linktext Optional. Text to display instead of the comment author's email address.143 * @param string $linktext Optional. Text to display instead of the comment author's email address. 143 144 * Default empty. 144 * @param string $before Optional. Text or HTML to display before the email link. Default empty. 145 * @param string $after Optional. Text or HTML to display after the email link. Default empty. 145 * @param string $before Optional. Text or HTML to display before the email link. Default empty. 146 * @param string $after Optional. Text or HTML to display after the email link. Default empty. 147 * @param int|WP_Comment $comment Optional. Comment ID or WP_Comment object. 146 148 */ 147 function comment_author_email_link( $linktext = '', $before = '', $after = '' ) {148 if ( $link = get_comment_author_email_link( $linktext, $before, $after ) )149 function comment_author_email_link( $linktext = '', $before = '', $after = '', $comment = 0 ) { 150 if ( $link = get_comment_author_email_link( $linktext, $before, $after, $comment ) ) 149 151 echo $link; 150 152 } 151 153 … … 159 161 * address and use it for their own means good and bad. 160 162 * 161 163 * @since 2.7.0 164 * @since 4.6.0 The `$comment` argument was added. 162 165 * 163 * @param string $linktext Optional. Text to display instead of the comment author's email address.166 * @param string $linktext Optional. Text to display instead of the comment author's email address. 164 167 * Default empty. 165 * @param string $before Optional. Text or HTML to display before the email link. Default empty. 166 * @param string $after Optional. Text or HTML to display after the email link. Default empty. 168 * @param string $before Optional. Text or HTML to display before the email link. Default empty. 169 * @param string $after Optional. Text or HTML to display after the email link. Default empty. 170 * @param int|WP_Comment $comment Optional. Comment ID or WP_Comment object. 167 171 * @return string 168 172 */ 169 function get_comment_author_email_link( $linktext = '', $before = '', $after = '' ) {170 $comment = get_comment( );173 function get_comment_author_email_link( $linktext = '', $before = '', $after = '', $comment = 0 ) { 174 $comment = get_comment( $comment ); 171 175 /** 172 176 * Filter the comment author's email for display. 173 177 *