WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/09/2013 07:06:06 PM (7 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: remove title attributes for better accessibility. Props sabreuse for original patch, see #25054.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php

    r25735 r25743  
    9595        echo '<span class="featured-post">' . __( 'Sticky', 'twentyfourteen' ) . '</span>';
    9696
    97     printf( __( '<span class="entry-date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a></span> <span class="byline"><span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyfourteen' ),
     97    printf( __( '<span class="entry-date"><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span> <span class="byline"><span class="author vcard"><a class="url fn n" href="%4$s" rel="author">%5$s</a></span></span>', 'twentyfourteen' ),
    9898        esc_url( get_permalink() ),
    99         esc_attr( get_the_time() ),
    10099        esc_attr( get_the_date( 'c' ) ),
    101100        esc_html( get_the_date() ),
    102101        esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    103         esc_attr( sprintf( __( 'View all posts by %s', 'twentyfourteen' ), get_the_author() ) ),
    104102        get_the_author()
    105103    );
Note: See TracChangeset for help on using the changeset viewer.