Permalink
Browse files

Fixes #4 - moves the itemprop attribute to the opening tag instead of…

… being incorrectly added to the closing tag.
  • Loading branch information...
1 parent a408746 commit bfea2e6e4e2122ca91fbd5d1c6516893ecf8480d @jlyman committed Feb 26, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 functions.php
View
@@ -160,7 +160,7 @@ function twentytwelve_entry_meta() {
*/
function twentytwelve_comment_author_hook( $author_code ) {
if (substr($author_code, 0, 2) == '<a') {
- $author_code = substr($author_code, 0, -1) . ' itemprop="url">';
+ $author_code = '<a itemprop="url"' . substr($author_code, 2);
}
return '<p class="comment-author-name" itemprop="name">' . $author_code . '</p>'; // Can't use a span tag because of conflicting styles on .bypostauthor
}

0 comments on commit bfea2e6

Please sign in to comment.