WordPress.org

Make WordPress Core

Ticket #14400: get_the_post_thumbnail.attr.diff

File get_the_post_thumbnail.attr.diff, 738 bytes (added by wjm, 10 years ago)
  • post-thumbnail-template.php

     
    6565        $size = apply_filters( 'post_thumbnail_size', $size );
    6666        if ( $post_thumbnail_id ) {
    6767                do_action( 'begin_fetch_post_thumbnail_html', $post_id, $post_thumbnail_id, $size ); // for "Just In Time" filtering of all of wp_get_attachment_image()'s filters
    68                 $html = wp_get_attachment_image( $post_thumbnail_id, $size, false, $attr );
     68                $html = wp_get_attachment_image( $post_thumbnail_id, $size, false );
    6969                do_action( 'end_fetch_post_thumbnail_html', $post_id, $post_thumbnail_id, $size );
    7070        } else {
    7171                $html = '';