WordPress.org

Make WordPress Core

Ticket #5911: 5911-22.diff

File 5911-22.diff, 1.5 KB (added by andy, 10 years ago)

more thumbnail fixes

  • wp-includes/media.php

     
    322322                <div class='gallery'>");
    323323
    324324        foreach ( $attachments as $id => $attachment ) {
    325                 $link = get_the_attachment_link($id, false, array(128, 96), true);
     325                $link = get_the_attachment_link($id, true, array(128, 96), true);
    326326                $output .= "
    327327                        <div>
    328328                                $link
  • wp-admin/includes/media.php

     
    836836-->
    837837</script>
    838838<div id="media-items">
     839<input type="submit" class="button savebutton" name="save" value="<?php _e('Save'); ?>" />
    839840<?php echo get_media_items( $id, $errors ); ?>
     841<input type="submit" class="button savebutton" name="save" value="<?php _e('Save'); ?>" />
    840842</div>
    841843
    842844<?php elseif ( is_callable($callback) ) : ?>
  • wp-admin/edit-attachment-rows.php

     
    3939
    4040        case 'icon':
    4141                ?>
    42                 <td class="media-icon"><?php echo get_the_attachment_link($post->ID, 'thumbnail', array(48,48)); ?></td>
     42                <td class="media-icon"><?php echo get_the_attachment_link($post->ID, false, array(48,48)); ?></td>
    4343                <?php
    4444                // TODO
    4545                break;