Make WordPress Core


Ignore:
Timestamp:
08/12/2021 07:29:43 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Synchronize documentation for wp_get_attachment_image_attributes filter callbacks in bundled themes:

  • Twenty Sixteen: Correct the $attachment parameter type, use typed array notation.
  • Twenty Seventeen: Correct the $attachment parameter type, use typed array notation.
  • Twenty Nineteen: Correct the @return value type, use typed array notation.
  • Twenty Twenty-One: Add missing @return value description, use typed array notation.

Follow-up to [29836], [47249], [49021], [49597].

Props ankitmaru, mukesh27, SergeyBiryukov.
Fixes #53878.

File:
1 edited

Legend:

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

    r49763 r51607  
    560560 * @since Twenty Sixteen 1.0
    561561 *
    562  * @param array $attr Attributes for the image markup.
    563  * @param int   $attachment Image attachment ID.
    564  * @param array $size Registered image size or flat array of height and width dimensions.
    565  * @return array The filtered attributes for the image markup.
     562 * @param string[]     $attr       Array of attribute values for the image markup, keyed by attribute name.
     563 *                                 See wp_get_attachment_image().
     564 * @param WP_Post      $attachment Image attachment post.
     565 * @param string|int[] $size       Requested image size. Can be any registered image size name, or
     566 *                                 an array of width and height values in pixels (in that order).
     567 * @return string[] The filtered attributes for the image markup.
    566568 */
    567569function twentysixteen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) {
Note: See TracChangeset for help on using the changeset viewer.