Ticket #30076: 30076.2.patch
| File 30076.2.patch, 822 bytes (added by , 11 years ago) |
|---|
-
wp-content/themes/twentyfifteen/inc/template-tags.php
272 272 <?php else : ?> 273 273 274 274 <a class="post-thumbnail" href="<?php the_permalink(); ?>"> 275 <?php the_post_thumbnail(); ?> 275 <?php 276 $thumbnail_id = get_post_thumbnail_id(); 277 $alt = get_post_meta( $thumbnail_id, '_wp_attachment_image_alt', true ); 278 $alt = ( $alt != '' ) ? "$alt; " : ''; 279 $args = array( 280 'alt' => sprintf( __( '%1$sPermalink to %2$s', 'twentyfifteen' ), $alt, get_the_title() ) 281 ); 282 the_post_thumbnail( 'post-thumbnail', $args ); 283 ?> 276 284 </a> 277 285 278 286 <?php endif; // End is_singular()