[wp-trac] [WordPress Trac] #23128: "Post Author" included as hCard names in Twenty Twelve comments

WordPress Trac noreply at wordpress.org
Sun Jan 6 06:05:37 UTC 2013


#23128: "Post Author" included as hCard names in Twenty Twelve comments
-----------------------------+--------------------------
 Reporter:  BrazenlyGeek     |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Themes
  Version:  3.5              |   Severity:  trivial
 Keywords:                   |
-----------------------------+--------------------------
 When Twenty Twelve output comments made by the author of the post being
 viewed, it appends "Post Author" (wrapped in a SPAN) to the comment
 author's name.

 The problem is that the entire thing (author's name & "Post Author") is
 wrapped in a CITE with hCard class "fn" applied to it.

 This causes hCard parsers to consider "Post Author" to be part of the
 author's full name, as can be verified by parse results here
 (http://www.google.com/webmasters/tools/richsnippets) when running through
 Twenty Twelve-powered posts with comments made by the post author.

 Line 289 of Twenty Twelve's functions.php is the relevant line; moving
 "%2$s" to outside the CITE tag is all that's needed, at least to fix the
 semantics problem (not sure if there's specific styling attached to the
 SPAN within the CITE or not).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23128>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list