Browse files

Add rel="author" to the entry author link.

  • Loading branch information...
1 parent 6c232da commit 52ab7591a65760786e6d0439ca4b424c227c0d21 @justintadlock committed Sep 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 functions/shortcodes.php
View
2 functions/shortcodes.php
@@ -260,7 +260,7 @@ function hybrid_entry_comments_link_shortcode( $attr ) {
*/
function hybrid_entry_author_shortcode( $attr ) {
$attr = shortcode_atts( array( 'before' => '', 'after' => '' ), $attr );
- $author = '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author_meta( 'display_name' ) ) . '">' . get_the_author_meta( 'display_name' ) . '</a></span>';
+ $author = '<span class="author vcard"><a class="url fn n" rel="author" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author_meta( 'display_name' ) ) . '">' . get_the_author_meta( 'display_name' ) . '</a></span>';
return $attr['before'] . $author . $attr['after'];
}

0 comments on commit 52ab759

Please sign in to comment.