WordPress.org

Make WordPress Core

Changeset 25743


Ignore:
Timestamp:
10/09/13 19:06:06 (19 months ago)
Author:
lancewillett
Message:

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

Location:
trunk/src/wp-content/themes/twentyfourteen
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/author.php

    r25213 r25743  
    2828 
    2929                        printf( __( 'All posts by %s', 'twentyfourteen' ), sprintf( 
    30                                 '<span class="vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="me">%3$s</a></span>', 
     30                                '<span class="vcard"><a class="url fn n" href="%1$s" rel="me">%2$s</a></span>', 
    3131                                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 
    32                                 esc_attr( get_the_author() ), 
    3332                                get_the_author() 
    3433                        ) ); 
  • trunk/src/wp-content/themes/twentyfourteen/content-aside.php

    r25735 r25743  
    2020        <div class="entry-meta"> 
    2121            <span class="post-format"> 
    22                 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'aside' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'aside' ) ) ); ?>"><?php echo get_post_format_string( 'aside' ); ?></a> 
     22                <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'aside' ) ); ?>"><?php echo get_post_format_string( 'aside' ); ?></a> 
    2323            </span> 
    2424 
  • trunk/src/wp-content/themes/twentyfourteen/content-featured-post.php

    r25021 r25743  
    77 
    88<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 
    9     <a class="attachment-featured-featured" href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>"> 
     9    <a class="attachment-featured-featured" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>"> 
    1010        <?php 
    1111            if ( has_post_thumbnail() ) : 
  • trunk/src/wp-content/themes/twentyfourteen/content-gallery.php

    r25088 r25743  
    3030    </div> 
    3131    <?php elseif ( $image ) : ?> 
    32     <a class="attachment-featured-thumbnail" href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>"> 
     32    <a class="attachment-featured-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>"> 
    3333        <?php echo wp_get_attachment_image( $image, 'featured-thumbnail-large' ); ?> 
    3434    </a> 
     
    5252        <div class="entry-meta"> 
    5353            <span class="post-format"> 
    54                 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'gallery' ) ) ); ?>"><?php echo get_post_format_string( 'gallery' ); ?></a> 
     54                <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>"><?php echo get_post_format_string( 'gallery' ); ?></a> 
    5555            </span> 
    5656 
  • trunk/src/wp-content/themes/twentyfourteen/content-image.php

    r25735 r25743  
    2828        <div class="entry-meta"> 
    2929            <span class="post-format"> 
    30                 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'image' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'image' ) ) ); ?>"><?php echo get_post_format_string( 'image' ); ?></a> 
     30                <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'image' ) ); ?>"><?php echo get_post_format_string( 'image' ); ?></a> 
    3131            </span> 
    3232 
  • trunk/src/wp-content/themes/twentyfourteen/content-link.php

    r25735 r25743  
    2020        <div class="entry-meta"> 
    2121            <span class="post-format"> 
    22                 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'link' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'link' ) ) ); ?>"><?php echo get_post_format_string( 'link' ); ?></a> 
     22                <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'link' ) ); ?>"><?php echo get_post_format_string( 'link' ); ?></a> 
    2323            </span> 
    2424 
  • trunk/src/wp-content/themes/twentyfourteen/content-quote.php

    r25735 r25743  
    2020        <div class="entry-meta"> 
    2121            <span class="post-format"> 
    22                 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'quote' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'quote' ) ) ); ?>"><?php echo get_post_format_string( 'quote' ); ?></a> 
     22                <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'quote' ) ); ?>"><?php echo get_post_format_string( 'quote' ); ?></a> 
    2323            </span> 
    2424 
  • trunk/src/wp-content/themes/twentyfourteen/content-video.php

    r25735 r25743  
    2828        <div class="entry-meta"> 
    2929            <span class="post-format"> 
    30                 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'video' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( 'video' ) ) ); ?>"><?php echo get_post_format_string( 'video' ); ?></a> 
     30                <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'video' ) ); ?>"><?php echo get_post_format_string( 'video' ); ?></a> 
    3131            </span> 
    3232 
  • trunk/src/wp-content/themes/twentyfourteen/footer.php

    r25065 r25743  
    1919            <div class="site-info"> 
    2020                <?php do_action( 'twentyfourteen_credits' ); ?> 
    21                 <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyfourteen' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyfourteen' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?></a> 
     21                <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyfourteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?></a> 
    2222            </div><!-- .site-info --> 
    2323        </footer><!-- #colophon --> 
  • trunk/src/wp-content/themes/twentyfourteen/functions.php

    r25736 r25743  
    333333    } 
    334334 
    335     printf( '<a href="%1$s" title="%2$s" rel="attachment">%3$s</a>', 
     335    printf( '<a href="%1$s" rel="attachment">%2$s</a>', 
    336336        esc_url( $next_attachment_url ), 
    337         the_title_attribute( array( 'echo' => false ) ), 
    338337        wp_get_attachment_image( $post->ID, $attachment_size ) 
    339338    ); 
  • trunk/src/wp-content/themes/twentyfourteen/header.php

    r25742 r25743  
    2929    <?php if ( get_header_image() ) : ?> 
    3030    <div id="site-header"> 
    31         <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> 
     31        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> 
    3232            <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /> 
    3333        </a> 
     
    3737    <header id="masthead" class="site-header" role="banner"> 
    3838        <div class="header-main"> 
    39             <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> 
     39            <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> 
    4040 
    4141            <div class="header-extra"> 
  • trunk/src/wp-content/themes/twentyfourteen/image.php

    r25519 r25743  
    2525                    <span class="entry-date"><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time></span> 
    2626 
    27                     <span class="full-size-link"><a href="<?php echo wp_get_attachment_url(); ?>" title="Link to full-size image"><?php echo $metadata['width']; ?> &times; <?php echo $metadata['height']; ?></a></span> 
     27                    <span class="full-size-link"><a href="<?php echo wp_get_attachment_url(); ?>"><?php echo $metadata['width']; ?> &times; <?php echo $metadata['height']; ?></a></span> 
    2828 
    29                     <span class="parent-post-link"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="Return to <?php echo esc_attr( get_the_title( $post->post_parent ) ); ?>" rel="gallery"><?php echo get_the_title( $post->post_parent ); ?></a></span> 
     29                    <span class="parent-post-link"><a href="<?php echo get_permalink( $post->post_parent ); ?>" rel="gallery"><?php echo get_the_title( $post->post_parent ); ?></a></span> 
    3030                    <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> 
    3131                </div><!-- .entry-meta --> 
     
    5959                <?php 
    6060                    if ( comments_open() && pings_open() ) : // Comments and trackbacks open 
    61                         printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyfourteen' ), get_trackback_url() ); 
     61                        printf( __( '<a class="comment-link" href="#respond">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" rel="trackback">Trackback URL</a>.', 'twentyfourteen' ), get_trackback_url() ); 
    6262                    elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open 
    63                         printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyfourteen' ), get_trackback_url() ); 
     63                        printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" rel="trackback">Trackback URL</a>.', 'twentyfourteen' ), get_trackback_url() ); 
    6464                    elseif ( comments_open() && ! pings_open() ) : // Only comments open 
    65                         _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyfourteen' ); 
     65                        _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond">post a comment</a>.', 'twentyfourteen' ); 
    6666                    elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed 
    6767                        _e( 'Both comments and trackbacks are currently closed.', 'twentyfourteen' ); 
  • 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    ); 
  • trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php

    r25506 r25743  
    157157                                endif; 
    158158 
    159                                 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' ), 
     159                                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">%5s</a></span></span>', 'twentyfourteen' ), 
    160160                                    esc_url( get_permalink() ), 
    161                                     esc_attr( get_the_time() ), 
    162161                                    esc_attr( get_the_date( 'c' ) ), 
    163162                                    esc_html( get_the_date() ), 
    164163                                    esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 
    165                                     esc_attr( sprintf( __( 'View all posts by %s', 'twentyfourteen' ), get_the_author() ) ), 
    166164                                    get_the_author() 
    167165                                ); 
Note: See TracChangeset for help on using the changeset viewer.