Ticket #9036: media-links-upgrade-2-6.patch
| File media-links-upgrade-2-6.patch, 1019 bytes (added by , 17 years ago) |
|---|
-
wp-includes/post-template.php
926 926 927 927 $post_title = attribute_escape($_post->post_title); 928 928 929 if ( $text ) {929 if( $text ) { 930 930 $link_text = attribute_escape($text); 931 } elseif ( ( is_int($size) && $size != 0 ) or ( is_string($size) && $size != 'none' ) or $size != false ) {931 } elseif( ( is_int($size) && $size != 0 ) or ( is_string($size) && $size != 'none' ) or $size != false ) { 932 932 $link_text = wp_get_attachment_image($id, $size, $icon); 933 } else { 933 } 934 935 if( trim($link_text) == '' ) 934 936 $link_text = $_post->post_title; 935 }936 937 937 return apply_filters( 'wp_get_attachment_link', "<a href='$url' title='$post_title'>$link_text</a>", $id, $size, $permalink, $icon );938 return apply_filters( 'wp_get_attachment_link', "<a href='$url' title='$post_title'>$link_text</a>", $id, $size, $permalink, $icon, $text ); 938 939 } 939 940 940 941 /**