Skip to content

Commit

Permalink
Add rel="author" to the entry author link.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Tadlock committed Sep 24, 2012
1 parent 6c232da commit 52ab759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/shortcodes.php
Expand Up @@ -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'];
}

Expand Down

0 comments on commit 52ab759

Please sign in to comment.