Changeset 23528
- Timestamp:
- 02/28/2013 06:58:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/author-template.php
r23448 r23528 135 135 function get_the_author_link() { 136 136 if ( get_the_author_meta('url') ) { 137 return '<a href="' . get_the_author_meta('url') . '" title="' . esc_attr( sprintf(__("Visit %s’s website"), get_the_author()) ) . '" rel="author external">' . get_the_author() . '</a>';137 return '<a href="' . esc_url( get_the_author_meta('url') ) . '" title="' . esc_attr( sprintf(__("Visit %s’s website"), get_the_author()) ) . '" rel="author external">' . get_the_author() . '</a>'; 138 138 } else { 139 139 return get_the_author(); … … 201 201 $link = sprintf( 202 202 '<a href="%1$s" title="%2$s" rel="author">%3$s</a>', 203 get_author_posts_url( $authordata->ID, $authordata->user_nicename),203 esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ), 204 204 esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ), 205 205 get_the_author()
Note: See TracChangeset
for help on using the changeset viewer.