Changeset 35748 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 11/29/2015 02:40:42 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/comment-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r35723 r35748 185 185 $display = ($linktext != '') ? $linktext : $email; 186 186 $return = $before; 187 $return .= "<a href='mailto:$email'>$display</a>";187 $return .= sprintf( '<a href="%1$s">%2$s</a>', esc_url( 'mailto:' . $email ), esc_html( $display ) ); 188 188 $return .= $after; 189 189 return $return; … … 279 279 */ 280 280 function comment_author_IP( $comment_ID = 0 ) { 281 echo get_comment_author_IP( $comment_ID);281 echo esc_html( get_comment_author_IP( $comment_ID ) ); 282 282 } 283 283
Note: See TracChangeset
for help on using the changeset viewer.