Make WordPress Core

Ticket #29869: 29869.diff

File 29869.diff, 900 bytes (added by mattheu, 10 years ago)
  • src/wp-includes/media.php

    diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
    index f4492fc..2a397c0 100644
    a b function wp_get_attachment_image($attachment_id, $size = 'thumbnail', $icon = fa 
    719719                 *
    720720                 * @since 2.8.0
    721721                 *
    722                  * @param mixed $attr       Attributes for the image markup.
    723                  * @param int   $attachment Image attachment post.
     722                 * @param mixed        $attr       Attributes for the image markup.
     723                 * @param int          $attachment Image attachment post.
     724                 * @param string|array $size Requested size.
    724725                 */
    725                 $attr = apply_filters( 'wp_get_attachment_image_attributes', $attr, $attachment );
     726                $attr = apply_filters( 'wp_get_attachment_image_attributes', $attr, $attachment, $size );
    726727                $attr = array_map( 'esc_attr', $attr );
    727728                $html = rtrim("<img $hwstring");
    728729                foreach ( $attr as $name => $value ) {