WordPress.org

Make WordPress Core

Ticket #7448: 7448.patch

File 7448.patch, 539 bytes (added by Viper007Bond, 10 years ago)
  • wp-includes/post-template.php

     
    388388        if ( !$link_text )
    389389                $link_text = $_post->post_title;
    390390
    391         return "<a href='$url' title='$post_title'>$link_text</a>";
    392 
     391        return apply_filters( 'wp_get_attachment_link', "<a href='$url' title='$post_title'>$link_text</a>", $id, $size, $permalink, $icon );
    393392}
    394393
    395394// deprecated - use wp_get_attachment_link()