mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-11 18:11:52 +01:00
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:
parent
39ca0f550e
commit
355c09e6d0
@ -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;
|
||||
|
@ -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) ) : ?>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user