WordPress.org

Make WordPress Core

Ticket #36661: 36661.diff

File 36661.diff, 668 bytes (added by Mte90, 2 years ago)

draft for doc on wp_get_attachment_image_attributes

  • src/wp-includes/media.php

     
    911911                 *
    912912                 * @since 2.8.0
    913913                 *
    914                  * @param array        $attr       Attributes for the image markup.
     914                 * @param array        $attr       Image HTML Attributes: src, class, alt, srcset, sizes for the image markup.
    915915                 * @param WP_Post      $attachment Image attachment post.
    916916                 * @param string|array $size       Requested size. Image size or array of width and height values
    917917                 *                                 (in that order). Default 'thumbnail'.