Make WordPress Core

Ticket #41830: 41830.diff

File 41830.diff, 1.6 KB (added by truongwp, 7 years ago)
  • src/wp-content/themes/twentyseventeen/functions.php

     
    514514 * @param array $attr       Attributes for the image markup.
    515515 * @param int   $attachment Image attachment ID.
    516516 * @param array $size       Registered image size or flat array of height and width dimensions.
    517  * @return string A 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.
    518518 */
    519519function twentyseventeen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) {
    520520        if ( is_archive() || is_search() || is_home() ) {
  • src/wp-content/themes/twentysixteen/functions.php

     
    393393 * @param array $attr Attributes for the image markup.
    394394 * @param int   $attachment Image attachment ID.
    395395 * @param array $size Registered image size or flat array of height and width dimensions.
    396  * @return string A 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.
    397397 */
    398398function twentysixteen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) {
    399399        if ( 'post-thumbnail' === $size ) {