Make WordPress Core

Changeset 24539


Ignore:
Timestamp:
07/01/2013 06:26:16 PM (12 years ago)
Author:
ocean90
Message:

Replace the cite element with a b element to markup the comment author in comment_html5().

In HTML5 the cite element isn't valid for just an author's name.
"The cite element represents the title of a work .. A person's name is not the title of a work" (http://www.w3.org/TR/html5/text-level-semantics.html#the-cite-element)

fixed #24522.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r24525 r24539  
    14471447                    <div class="comment-author vcard">
    14481448                        <?php if ( 0 != $args['avatar_size'] ) echo get_avatar( $comment, $args['avatar_size'] ); ?>
    1449                         <?php printf( __( '%s <span class="says">says:</span>' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
     1449                        <?php printf( __( '%s <span class="says">says:</span>' ), sprintf( '<b class="fn">%s</b>', get_comment_author_link() ) ); ?>
    14501450                    </div><!-- .comment-author -->
    14511451
Note: See TracChangeset for help on using the changeset viewer.