Make WordPress Core

Ticket #40155: 40155.1.diff

File 40155.1.diff, 937 bytes (added by danielbachhuber, 7 years ago)
  • src/wp-includes/post-template.php

    diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php
    index 924e3996fb..844df73be0 100644
    a b function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = fals 
    15301530         * @param bool         $permalink Whether to add permalink to image. Default false.
    15311531         * @param bool         $icon      Whether to include an icon. Default false.
    15321532         * @param string|bool  $text      If string, will be link text. Default false.
     1533         * @param array|string $attr      Array or string of attributes. Default empty.
    15331534         */
    1534         return apply_filters( 'wp_get_attachment_link', "<a href='" . esc_url( $url ) . "'>$link_text</a>", $id, $size, $permalink, $icon, $text );
     1535        return apply_filters( 'wp_get_attachment_link', "<a href='" . esc_url( $url ) . "'>$link_text</a>", $id, $size, $permalink, $icon, $text, $attr );
    15351536}
    15361537
    15371538/**