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/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
Note: See TracChangeset for help on using the changeset viewer.