Ticket #30076: 30076.patch
File 30076.patch, 781 bytes (added by , 6 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 $args = array( 279 'alt' => sprintf( __( '%1$s; Permalink to %2$s', 'twentyfifteen' ), $alt, get_the_title() ) 280 ); 281 the_post_thumbnail( 'post-thumbnail', $args ); 282 ?> 276 283 </a> 277 284 278 285 <?php endif; // End is_singular()