Changes from branches/2.8/wp-includes/author-template.php at r11890 to trunk/wp-includes/author-template.php at r11450
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/author-template.php
r11890 r11450 133 133 function the_author_link() { 134 134 if ( get_the_author_meta('url') ) { 135 echo '<a href="' . get_the_author_meta('url') . '" title="' . esc_attr( sprintf(__("Visit %s’s website"), get_the_author())) . '" rel="external">' . get_the_author() . '</a>';135 echo '<a href="' . get_the_author_meta('url') . '" title="' . sprintf(__("Visit %s’s website"), get_the_author()) . '" rel="external">' . get_the_author() . '</a>'; 136 136 } else { 137 137 the_author(); … … 182 182 '<a href="%1$s" title="%2$s">%3$s</a>', 183 183 get_author_posts_url( $authordata->ID, $authordata->user_nicename ), 184 esc_attr( sprintf( __( 'Posts by %s' ),get_the_author() ) ),184 sprintf( __( 'Posts by %s' ), esc_attr( get_the_author() ) ), 185 185 get_the_author() 186 186 ); … … 293 293 $link = $name; 294 294 } else { 295 $link = '<a href="' . get_author_posts_url($author->ID, $author->user_nicename) . '" title="' . esc_attr( sprintf(__("Posts by %s"), $author->display_name)) . '">' . $name . '</a>';295 $link = '<a href="' . get_author_posts_url($author->ID, $author->user_nicename) . '" title="' . sprintf(__("Posts by %s"), esc_attr($author->display_name)) . '">' . $name . '</a>'; 296 296 297 297 if ( (! empty($feed_image)) || (! empty($feed)) ) { … … 302 302 303 303 if ( !empty($feed) ) { 304 $title = ' title="' . esc_attr($feed). '"';305 $alt = ' alt="' . esc_attr($feed). '"';304 $title = ' title="' . $feed . '"'; 305 $alt = ' alt="' . $feed . '"'; 306 306 $name = $feed; 307 307 $link .= $title; … … 311 311 312 312 if ( !empty($feed_image) ) 313 $link .= "<img src=\" " . esc_url($feed_image) . "\" style=\"border: none;\"$alt$title" . ' />';313 $link .= "<img src=\"$feed_image\" style=\"border: none;\"$alt$title" . ' />'; 314 314 else 315 315 $link .= $name;
Note: See TracChangeset
for help on using the changeset viewer.