Added authorship rel attribute to post author link

This commit is contained in:
Scott Walkinshaw
2011-06-08 21:27:48 -06:00
parent 75d2738db9
commit acea241631
5 changed files with 12 additions and 6 deletions

View File

@@ -123,4 +123,10 @@ function roots_robots() {
echo "Allow: /assets";
}
function roots_author_link($link) {
return str_replace('<a ', '<a class="fn" rel="author"', $link);
}
add_filter('the_author_posts_link', 'roots_author_link');
?>