Ticket #41830: 41830.diff
File 41830.diff, 1.6 KB (added by , 7 years ago) |
---|
-
src/wp-content/themes/twentyseventeen/functions.php
514 514 * @param array $attr Attributes for the image markup. 515 515 * @param int $attachment Image attachment ID. 516 516 * @param array $size Registered image size or flat array of height and width dimensions. 517 * @return stringA source size value for use in a post thumbnail 'sizes' attribute.517 * @return array A source size value for use in a post thumbnail 'sizes' attribute. 518 518 */ 519 519 function twentyseventeen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) { 520 520 if ( is_archive() || is_search() || is_home() ) { -
src/wp-content/themes/twentysixteen/functions.php
393 393 * @param array $attr Attributes for the image markup. 394 394 * @param int $attachment Image attachment ID. 395 395 * @param array $size Registered image size or flat array of height and width dimensions. 396 * @return stringA source size value for use in a post thumbnail 'sizes' attribute.396 * @return array A source size value for use in a post thumbnail 'sizes' attribute. 397 397 */ 398 398 function twentysixteen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) { 399 399 if ( 'post-thumbnail' === $size ) {