Make WordPress Core


Ignore:
Timestamp:
10/15/2013 11:23:08 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: better logic for featured image HTML output, and add fallback message for focusable anchor elements, for accessibility. Fixes #25325.

File:
1 edited

Legend:

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

    r25769 r25802  
    2626
    2727<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    28     <?php if( is_single() && $image ) : ?>
    29     <div class="attachment-featured-thumbnail">
     28    <?php if ( is_single() && $image ) : ?>
     29    <div class="featured-thumbnail">
    3030        <?php echo wp_get_attachment_image( $image, 'featured-thumbnail-large' ); ?>
    3131    </div>
    3232    <?php elseif ( $image ) : ?>
    33     <a class="attachment-featured-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
     33    <a class="featured-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
    3434        <?php echo wp_get_attachment_image( $image, 'featured-thumbnail-large' ); ?>
    3535    </a>
Note: See TracChangeset for help on using the changeset viewer.