Make WordPress Core


Ignore:
Timestamp:
03/12/2008 08:10:00 AM (19 years ago)
Author:
ryan
Message:

Image fixes from andy. see #5911

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r7172 r7263  
    371371
    372372// get an attachment page link using an image or icon if possible
    373 function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false) {
     373function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false, $icon = false) {
    374374        $_post = & get_post( intval($id) );
    375375
    … …  
    382382        $post_title = attribute_escape($_post->post_title);
    383383
    384         $link_text = wp_get_attachment_image($id, $size);
     384        $link_text = wp_get_attachment_image($id, $size, $icon);
    385385        if ( !$link_text )
    386386                $link_text = $_post->post_title;
Note: See TracChangeset for help on using the changeset viewer.