WordPress.org

Make WordPress Core

Changeset 41342


Ignore:
Timestamp:
09/08/2017 04:26:55 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Twenty Seventeen: Correct the @return value for twentyseventeen_post_thumbnail_sizes_attr().

Props truongwp.
Fixes #41830.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/functions.php

    r40315 r41342  
    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 The filtered attributes for the image markup.
    518518 */
    519519function twentyseventeen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) {
Note: See TracChangeset for help on using the changeset viewer.