More attachment thumbnail fixes, see #5911. Hat tip: andy.

git-svn-id: http://svn.automattic.com/wordpress/trunk@7218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2008-03-10 23:04:20 +00:00
parent 39ca0f550e
commit 355c09e6d0
3 changed files with 4 additions and 2 deletions

View File

@ -39,7 +39,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
case 'icon':
?>
<td class="media-icon"><?php echo get_the_attachment_link($post->ID, 'thumbnail', array(48,48)); ?></td>
<td class="media-icon"><?php echo get_the_attachment_link($post->ID, false, array(48,48)); ?></td>
<?php
// TODO
break;

View File

@ -836,7 +836,9 @@ jQuery(function($){
-->
</script>
<div id="media-items">
<input type="submit" class="button savebutton" name="save" value="<?php _e('Save'); ?>" />
<?php echo get_media_items( $id, $errors ); ?>
<input type="submit" class="button savebutton" name="save" value="<?php _e('Save'); ?>" />
</div>
<?php elseif ( is_callable($callback) ) : ?>

View File

@ -322,7 +322,7 @@ function gallery_shortcode($attr) {
<div class='gallery'>");
foreach ( $attachments as $id => $attachment ) {
$link = get_the_attachment_link($id, false, array(128, 96), true);
$link = get_the_attachment_link($id, true, array(128, 96), true);
$output .= "
<div>
$link